[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v5 1/2] lsefi: fixed memory leaks
From: |
Vladimir 'phcoder' Serbinenko |
Subject: |
Re: [PATCH v5 1/2] lsefi: fixed memory leaks |
Date: |
Fri, 28 Jun 2024 14:57:05 +0300 |
Reviewed-By: Vladimir Serbinenko <phcoder@gmail.com>
On Fri, Jun 28, 2024 at 2:14 PM Renaud Métrich <rmetrich@redhat.com> 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 7b8316d41..bda25a3a9 100644
> --- a/grub-core/commands/efi/lsefi.c
> +++ b/grub-core/commands/efi/lsefi.c
> @@ -127,8 +127,12 @@ grub_cmd_lsefi (grub_command_t cmd __attribute__
> ((unused)),
> grub_printf (" %pG\n", protocols[j]);
> }
>
> + if (protocols)
> + grub_efi_free_pool (protocols);
> }
>
> + grub_free (handles);
> +
> return 0;
> }
>
> --
> 2.45.2
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
--
Regards
Vladimir 'phcoder' Serbinenko