efinet: memory leak on module removal
This commit is contained in:
parent
6210b8e8f7
commit
8d3c4544ff
1 changed files with 7 additions and 1 deletions
|
@ -278,6 +278,12 @@ GRUB_MOD_FINI(efinet)
|
|||
|
||||
FOR_NET_CARDS_SAFE (card, next)
|
||||
if (card->driver == &efidriver)
|
||||
{
|
||||
grub_net_card_unregister (card);
|
||||
grub_free (card->txbuf);
|
||||
grub_free (card->rcvbuf);
|
||||
grub_free (card->name);
|
||||
grub_free (card);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue