* grub-core/normal/dyncmd.c (read_command_list): Don't access freed
space.
This commit is contained in:
parent
7da036bbcb
commit
3006e9810f
2 changed files with 6 additions and 1 deletions
|
@ -122,8 +122,8 @@ read_command_list (const char *prefix)
|
|||
last->next = ptr->next;
|
||||
else
|
||||
grub_command_list = ptr->next;
|
||||
grub_free (ptr);
|
||||
grub_free (ptr->data); /* extcmd struct */
|
||||
grub_free (ptr);
|
||||
}
|
||||
else
|
||||
last = ptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue