All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 1/2] lsefi: fixed memory leaks
@ 2022-09-01  7:28 Renaud Métrich
  2022-09-01  7:28 ` [PATCH v4 2/2] efi: new 'eficonnect' command Renaud Métrich
  2022-09-05  0:21 ` [PATCH v4 1/2] lsefi: fixed memory leaks Glenn Washburn
  0 siblings, 2 replies; 4+ messages in thread
From: Renaud Métrich @ 2022-09-01  7:28 UTC (permalink / raw)
  To: grub-devel; +Cc: Renaud Métrich

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 f46ba3b49..241be79f9 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.37.2



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-09-05  0:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-01  7:28 [PATCH v4 1/2] lsefi: fixed memory leaks Renaud Métrich
2022-09-01  7:28 ` [PATCH v4 2/2] efi: new 'eficonnect' command Renaud Métrich
2022-09-01 16:52   ` Robbie Harwood
2022-09-05  0:21 ` [PATCH v4 1/2] lsefi: fixed memory leaks Glenn Washburn

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.