src/sysfs_devices.c: Fix memory leak and call free() with invalid pointer
This commit is contained in:
parent
0e7f70e375
commit
f15658888a
|
@ -91,9 +91,12 @@ catroof_scan_sysfs_subdir(
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
free(entry_fullpath);
|
||||
}
|
||||
|
||||
success = true;
|
||||
goto close;
|
||||
|
||||
free_fullpath:
|
||||
free(entry_fullpath);
|
||||
|
|
Loading…
Reference in New Issue