2004-12-13 Marco Gerards <metgerards@student.han.nl>
* fs/ext2.c (grub_ext2_open): Don't use data after freeing it. (grub_ext2_dir): Likewise. Don't return in case of an error, jump to fail instead. Reported by Vincent Pelletier <subdino2004@yahoo.fr>. * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when it is not allocated. Reported by Vincent Pelletier <subdino2004@yahoo.fr>. * normal/cmdline.c (grub_tab_complete): Add a blank line to the output so the output looks better.
This commit is contained in:
parent
3f1578fe4a
commit
4ceb3636de
4 changed files with 18 additions and 6 deletions
|
@ -130,10 +130,8 @@ grub_fshelp_find_file (const char *path, grub_fshelp_node_t rootnode,
|
|||
|
||||
/* Iterate over the directory. */
|
||||
found = iterate_dir (currnode, iterate);
|
||||
|
||||
if (!found)
|
||||
{
|
||||
free_node (oldnode);
|
||||
if (grub_errno)
|
||||
return grub_errno;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue