You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

30 lines
844 B

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/237] 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 78df215..810adf3 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.9.3