Blame SOURCES/0161-Revert-efinet-memory-leak-on-module-removal.patch

d41074
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
a85e8e
From: Andrei Borzenkov <arvidjaar@gmail.com>
a85e8e
Date: Mon, 4 May 2015 09:13:53 +0300
d41074
Subject: [PATCH] Revert "efinet: memory leak on module removal"
a85e8e
a85e8e
This reverts commits 47b2bee3ef0ea60fc3f5bfc37f3784e559385297
a85e8e
and 8d3c4544ffdd0289a4b0bdeb0cdc6355f801a4b3. It is not safe
a85e8e
to free allocated cards, dangling pointers main remain. Such
a85e8e
cleanup requires more changes in net core.
a85e8e
---
a85e8e
 grub-core/net/drivers/efi/efinet.c | 8 +-------
a85e8e
 1 file changed, 1 insertion(+), 7 deletions(-)
a85e8e
a85e8e
diff --git a/grub-core/net/drivers/efi/efinet.c b/grub-core/net/drivers/efi/efinet.c
d41074
index bb863e65a38..78df215be12 100644
a85e8e
--- a/grub-core/net/drivers/efi/efinet.c
a85e8e
+++ b/grub-core/net/drivers/efi/efinet.c
a85e8e
@@ -294,12 +294,6 @@ GRUB_MOD_FINI(efinet)
a85e8e
 
a85e8e
   FOR_NET_CARDS_SAFE (card, next) 
a85e8e
     if (card->driver == &efidriver)
a85e8e
-      {
a85e8e
-	grub_net_card_unregister (card);
a85e8e
-	grub_free (card->txbuf);
a85e8e
-	grub_free (card->rcvbuf);
a85e8e
-	grub_free ((char *)card->name);
a85e8e
-	grub_free (card);
a85e8e
-      }
a85e8e
+      grub_net_card_unregister (card);
a85e8e
 }
a85e8e