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

a85e8e
From 8471c374d9379ba80e4b3bbcacb4813a2d04f008 Mon Sep 17 00:00:00 2001
a85e8e
From: Andrei Borzenkov <arvidjaar@gmail.com>
a85e8e
Date: Mon, 4 May 2015 08:08:57 +0300
a85e8e
Subject: [PATCH 159/260] 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
a85e8e
index 78df215be..810adf38f 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
 
a85e8e
-- 
a85e8e
2.13.0
a85e8e