mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-27 17:49:23 +00:00
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:
1 parent
c806e4dc88
commit
5e8989e4ed
1 file changed
+1
-1
+1
-1
@@ -808,7 +808,7 @@ find_file (const char *path, grub_disk_t disk,
|
|||||||
.disk = disk,
|
.disk = disk,
|
||||||
.sb = sb,
|
.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,
|
err = read_extent (disk, sb, &sb->root_dir, 0, 0, &root.ino,
|
||||||
sizeof (root.ino));
|
sizeof (root.ino));
|
||||||
|
|||||||
Reference in new issue
Block a user