* grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
This commit is contained in:
parent
3ea1ca46c1
commit
a93964ce11
2 changed files with 6 additions and 0 deletions
|
@ -934,6 +934,8 @@ grub_cmd_delroute (struct grub_command *cmd __attribute__ ((unused)),
|
|||
*prev = route->next;
|
||||
grub_free (route->name);
|
||||
grub_free (route);
|
||||
if (!*prev)
|
||||
break;
|
||||
}
|
||||
|
||||
return GRUB_ERR_NONE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue