diff options
| author | Ross Lagerwall <ross.lagerwall@citrix.com> | 2024-02-29 16:56:08 +0000 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2025-02-04 11:56:11 -0500 |
| commit | 11252121f853a0a3aac102b72a279204b9c69a00 (patch) | |
| tree | 7ae2733cf6f58be2499b9c84349b847fd69211fa /shim.c | |
| parent | c66c157c2d581408385577daa824c5c3124d7f61 (diff) | |
| download | efi-boot-shim-11252121f853a0a3aac102b72a279204b9c69a00.tar.gz efi-boot-shim-11252121f853a0a3aac102b72a279204b9c69a00.zip | |
Fix leak in error path
Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Diffstat (limited to 'shim.c')
| -rw-r--r-- | shim.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1498,8 +1498,10 @@ load_cert_file(EFI_HANDLE image_handle, CHAR16 *filename, CHAR16 *PathName) return efi_status; efi_status = verify_image(data, datasize, shim_li, &context); - if (EFI_ERROR(efi_status)) + if (EFI_ERROR(efi_status)) { + FreePool(data); return efi_status; + } Section = context.FirstSection; for (i = 0; i < context.NumberOfSections; i++, Section++) { |
