efinet: memory leak on module removal

This commit is contained in:
Andrei Borzenkov 2015-05-04 08:08:57 +03:00
parent 6210b8e8f7
commit 8d3c4544ff

View file

@ -278,6 +278,12 @@ GRUB_MOD_FINI(efinet)
FOR_NET_CARDS_SAFE (card, next) FOR_NET_CARDS_SAFE (card, next)
if (card->driver == &efidriver) if (card->driver == &efidriver)
{
grub_net_card_unregister (card); grub_net_card_unregister (card);
grub_free (card->txbuf);
grub_free (card->rcvbuf);
grub_free (card->name);
grub_free (card);
}
} }