Signed-off-by: Renaud Métrich <rmetrich@redhat.com>
---
grub-core/commands/efi/lsefi.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/grub-core/commands/efi/lsefi.c b/grub-core/commands/efi/lsefi.c
index 7acba3b39..f0b9201f1 100644
--- a/grub-core/commands/efi/lsefi.c
+++ b/grub-core/commands/efi/lsefi.c
@@ -186,8 +186,12 @@ grub_cmd_lsefi (grub_command_t cmd __attribute__
((unused)),
(unsigned) protocols[j]->data4[7]);
}
+ if (protocols)
+ grub_efi_free_pool (protocols);
}
+ grub_free (handles);
+
return 0;
}