* 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:
Vladimir 'phcoder' Serbinenko 2012-06-27 19:37:40 +02:00
parent 5e6a440ad7
commit c59bdff709
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
it's equal to currnode. This can happen with "" symlink.
2012-06-27 Yves Blusseau <blusseau@zetam.org>
* util/grub-mkconfig_lib.in: Fix print messages replacing builtin

View file

@ -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')