[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 1/2] lsefi: fixed memory leaks
From: |
Renaud Métrich |
Subject: |
[PATCH v3 1/2] lsefi: fixed memory leaks |
Date: |
Tue, 15 Feb 2022 14:05:21 +0100 |
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 d1ce99af4..b1f2d4695 100644
--- a/grub-core/commands/efi/lsefi.c
+++ b/grub-core/commands/efi/lsefi.c
@@ -136,8 +136,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;
}
--
2.34.1