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

It was forgotten to free `handles` array of handles returned by
`grub_efi_locate_handle`. This is quite a large amount of memory, it depends 
how many handles being returned which can be hundrends.

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 7b8316d41..016f3eafe 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