From: khaalid <khaliidca...@gmail.com>

"handles" that "grub_efi_locate_handles" was allocated with "grub_malloc" 
wasn't being freed.

Signed-off-by: Khalid Ali <khaliidca...@gmail.com>
---
 grub-core/commands/efi/lsefi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/grub-core/commands/efi/lsefi.c b/grub-core/commands/efi/lsefi.c
index 016f3eafe..216fe7397 100644
--- a/grub-core/commands/efi/lsefi.c
+++ b/grub-core/commands/efi/lsefi.c
@@ -128,7 +128,7 @@ grub_cmd_lsefi (grub_command_t cmd __attribute__ ((unused)),
        }
 
     }
+
+  grub_free (handles);
   return 0;
 }
 
-- 
2.49.0


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to