From: Vladimir Serbinenko Date: Thu, 16 May 2024 18:37:49 +0000 (+0300) Subject: fs/bfs: Fix improper grub_free() on non-existing files X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e8989e4eda6fd8b2b497b35e20365b254212f30;p=thirdparty%2Fgrub.git fs/bfs: Fix improper grub_free() on non-existing files Signed-off-by: Vladimir Serbinenko Reviewed-by: Daniel Kiper --- diff --git a/grub-core/fs/bfs.c b/grub-core/fs/bfs.c index 07cb3e3ac..9bc478ce8 100644 --- a/grub-core/fs/bfs.c +++ b/grub-core/fs/bfs.c @@ -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));