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.
 
 
 
 
 
 

27 lines
833 B

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Andrei Borzenkov <arvidjaar@gmail.com>
Date: Mon, 4 May 2015 08:08:57 +0300
Subject: [PATCH] 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 78df215be12..810adf38fe6 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);
+ }
}