fs/bfs: Fix improper grub_free() on non-existing files

Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
Vladimir Serbinenko authored and Daniel Kiper committed 2024-06-06 16:55:15 +02:00
1 parent c806e4dc88
commit 5e8989e4ed
1 file changed
+1 -1
+1 -1
View File
@@ -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));