diff --git a/ChangeLog b/ChangeLog index b89679741..c223a869c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2010-09-30 Vladimir Serbinenko + + * grub-core/normal/term.c (read_terminal_list): Free in a right order. + 2010-09-30 Vladimir Serbinenko * grub-core/script/execute.c (grub_script_execute_sourcecode): Set diff --git a/grub-core/normal/term.c b/grub-core/normal/term.c index fe6240eb0..00721c447 100644 --- a/grub-core/normal/term.c +++ b/grub-core/normal/term.c @@ -376,8 +376,8 @@ read_terminal_list (const char *prefix) if (! cur->modname) { grub_errno = GRUB_ERR_NONE; - grub_free (cur); grub_free (cur->name); + grub_free (cur); continue; } cur->next = *target;