* grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-05-01 15:03:27 +02:00
parent e3282399ad
commit ddc583571e
2 changed files with 5 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard

View file

@ -136,6 +136,7 @@ grub_fshelp_find_file (const char *path, grub_fshelp_node_t rootnode,
found = iterate_dir (currnode, iterate);
if (! found)
{
free_node (currnode);
if (grub_errno)
return grub_errno;