Skip to content

commands/efi/lsefi: Fix memory leak

khaalid cali grub-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v1 posting 2/21 of 3 patches 1 replyIn review
  2. v2 Latest2 of 3 patches 1 replyIn review
  3. v1 posting 1/22 patches 3 repliesSuperseded

2 of 3 patches are in this archive. The cover letter announces 3.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3disk/efi/efidisk: Fix memory leakgrub-core/disk/efi/efidisk.c+6 -00 replies
2/3loader/efi/linux: Fix memory leakgrub-core/loader/efi/linux.c+7 -00 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchDaniel Kiper
SeriesR-b
1/3
2/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/3] commands/efi/lsefi: Fix memory leak

From: khaalid <[email protected]>

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

---
 grub-core/commands/efi/lsefi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
grub-core/commands/efi/lsefi.c +2 -0
index 016f3eafe..216fe7397 100644
@@ -128,7 +128,7 @@ grub_cmd_lsefi (grub_command_t cmd __attribute__ ((unused)),
 	}
 
     }
+
+  grub_free (handles);
   return 0;
 }
Signature · 7 lines
2.49.0


_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel