mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-02-06 09:02:20 +08:00
[HUST CSE]Assign Null to fdt after free to avoid dangling pointer (#7389)
This commit is contained in:
@@ -52,6 +52,7 @@ void *dtb_node_load_from_fs(char *dtb_filename)
|
||||
if (dtb_node_check(fdt) == RT_FALSE)
|
||||
{
|
||||
free(fdt);
|
||||
fdt=NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user