bfs: Fix improper free() on non-existing files
PATCH 1/1 bfs: Fix improper free() on non-existing files
Signed-off-by Vladimir Serbinenko <[email protected]>
--- grub-core/fs/bfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
grub-core/fs/bfs.c +1 -1
@@ -808,7 +808,7 @@ find_file (const char *path, grub_disk_t disk, .disk = disk, .sb = sb, }; -struct grub_fshelp_node *found; +struct grub_fshelp_node *found =NULL ; err =read_extent (disk, sb, &sb->root_dir,0 ,0 , &root.ino,sizeof (root.ino));
Signature · 7 lines
2.39.2 _______________________________________________ Grub-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/grub-devel
Quoted 1 line · Vladimir Serbinenko
Signed-off-by Vladimir Serbinenko <[email protected]>
Reviewed-by Daniel Kiper <[email protected]>
Daniel
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel