Blob Blame History Raw
From 8471c374d9379ba80e4b3bbcacb4813a2d04f008 Mon Sep 17 00:00:00 2001
From: Andrei Borzenkov <arvidjaar@gmail.com>
Date: Mon, 4 May 2015 08:08:57 +0300
Subject: [PATCH 159/261] efinet: memory leak on module removal

---
 grub-core/net/drivers/efi/efinet.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/grub-core/net/drivers/efi/efinet.c b/grub-core/net/drivers/efi/efinet.c
index 78df215be..810adf38f 100644
--- a/grub-core/net/drivers/efi/efinet.c
+++ b/grub-core/net/drivers/efi/efinet.c
@@ -294,6 +294,12 @@ GRUB_MOD_FINI(efinet)
 
   FOR_NET_CARDS_SAFE (card, next) 
     if (card->driver == &efidriver)
-      grub_net_card_unregister (card);
+      {
+	grub_net_card_unregister (card);
+	grub_free (card->txbuf);
+	grub_free (card->rcvbuf);
+	grub_free (card->name);
+	grub_free (card);
+      }
 }
 
-- 
2.13.5