[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 1/2] lsefi: fixed memory leaks
From: |
Daniel Kiper |
Subject: |
Re: [PATCH v3 1/2] lsefi: fixed memory leaks |
Date: |
Thu, 24 Feb 2022 20:39:43 +0100 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
On Tue, Feb 15, 2022 at 02:05:21PM +0100, Renaud Métrich wrote:
> 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);
The grub_efi_free_pool() does not exist in upstream. I think we are
missing a patch from downstream.
Daniel