Blame SOURCES/0159-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 08:08:57 +0300
d41074
Subject: [PATCH] efinet: memory leak on module removal
a85e8e
a85e8e
---
a85e8e
 grub-core/net/drivers/efi/efinet.c | 8 +++++++-
a85e8e
 1 file changed, 7 insertions(+), 1 deletion(-)
a85e8e
a85e8e
diff --git a/grub-core/net/drivers/efi/efinet.c b/grub-core/net/drivers/efi/efinet.c
d41074
index 78df215be12..810adf38fe6 100644
a85e8e
--- a/grub-core/net/drivers/efi/efinet.c
a85e8e
+++ b/grub-core/net/drivers/efi/efinet.c
a85e8e
@@ -294,6 +294,12 @@ GRUB_MOD_FINI(efinet)
a85e8e
 
a85e8e
   FOR_NET_CARDS_SAFE (card, next) 
a85e8e
     if (card->driver == &efidriver)
a85e8e
-      grub_net_card_unregister (card);
a85e8e
+      {
a85e8e
+	grub_net_card_unregister (card);
a85e8e
+	grub_free (card->txbuf);
a85e8e
+	grub_free (card->rcvbuf);
a85e8e
+	grub_free (card->name);
a85e8e
+	grub_free (card);
a85e8e
+      }
a85e8e
 }
a85e8e