* grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
This commit is contained in:
parent
e3282399ad
commit
ddc583571e
2 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue