* grub-core/normal/term.c (read_terminal_list): Free in a right order.

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-09-30 21:04:09 +02:00
parent 74ccb5b5e2
commit e6d983ba6d
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/normal/term.c (read_terminal_list): Free in a right order.
2010-09-30 Vladimir Serbinenko <phcoder@gmail.com> 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/script/execute.c (grub_script_execute_sourcecode): Set * grub-core/script/execute.c (grub_script_execute_sourcecode): Set

View file

@ -376,8 +376,8 @@ read_terminal_list (const char *prefix)
if (! cur->modname) if (! cur->modname)
{ {
grub_errno = GRUB_ERR_NONE; grub_errno = GRUB_ERR_NONE;
grub_free (cur);
grub_free (cur->name); grub_free (cur->name);
grub_free (cur);
continue; continue;
} }
cur->next = *target; cur->next = *target;