Revert "efinet: memory leak on module removal"
This reverts commits47b2bee3ef
and8d3c4544ff
. 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:
parent
47b2bee3ef
commit
cc699535e5
1 changed files with 1 additions and 7 deletions
|
@ -278,12 +278,6 @@ 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 ((char *)card->name);
|
||||
grub_free (card);
|
||||
}
|
||||
grub_net_card_unregister (card);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue