commands/efi/tmp: Fix memory leak
PATCH RESEND 3/3 commands/efi/tmp: Fix memory leak
From: khaalid <[email protected]>
Free handles probably before return.
Signed-off-by Khalid Ali <[email protected]>
--- grub-core/commands/efi/tpm.c | 2 ++ 1 file changed, 2 insertions(+)
grub-core/commands/efi/tpm.c +2 -0
@@ -112,6 +112,7 @@ grub_tpm_handle_find (grub_efi_handle_t *tpm_handle, grub_tpm_version =1 ; *protocol_version =1 ;grub_dprintf ("tpm" ,"TPM handle Found, version: 1\n" ); +grub_free (handles);return 1 ; }
@@ -124,6 +125,7 @@ grub_tpm_handle_find (grub_efi_handle_t *tpm_handle, grub_tpm_version =2 ; *protocol_version =2 ;grub_dprintf ("tpm" ,"TPM handle Found, version: 2\n" ); +grub_free (handles);return 1 ; }
Signature · 7 lines
2.49.0 _______________________________________________ Grub-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/grub-devel
Quoted 5 lines · khaalid cali
From: khaalid <[email protected]>
Free handles probably before return.
Signed-off-by Khalid Ali <[email protected]>
Could you merge this patch with "commands/efi/lsefi: Fix memory leak" one?
Did you check other grub_efi_locate_handle() calls?
Daniel
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel