mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +00:00
* grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
it's equal to currnode. This can happen with "" symlink.
This commit is contained in:
1 parent
5e6a440ad7
commit
c59bdff709
2 files changed
+7
-1
No files matched your search
@@ -189,7 +189,8 @@ grub_fshelp_find_file (const char *path, grub_fshelp_node_t rootnode,
|
||||
}
|
||||
}
|
||||
|
||||
free_node (oldnode);
|
||||
if (oldnode != currnode)
|
||||
free_node (oldnode);
|
||||
|
||||
/* Found the node! */
|
||||
if (! next || *next == '\0')
|
||||
|
||||
Reference in new issue
Block a user