Revert "efinet: memory leak on module removal"

This reverts commits 47b2bee3ef
and 8d3c4544ff. It is not safe
to free allocated cards, dangling pointers main remain. Such
cleanup requires more changes in net core.
This commit is contained in:
Andrei Borzenkov 2015-05-04 09:13:53 +03:00
parent 47b2bee3ef
commit cc699535e5

View file

@ -278,12 +278,6 @@ 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 ((char *)card->name);
grub_free (card);
}
} }