grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 2/2] lsefi: fixed memory leaks


From: Renaud Métrich
Subject: Re: [PATCH v2 2/2] lsefi: fixed memory leaks
Date: Tue, 15 Feb 2022 14:07:15 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0

Please ignore, deprecated by "efi: new 'connectefi' command" (v3).

Sorry for the mess.

Le 2/14/22 à 14:25, Renaud Métrich a écrit :
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 7acba3b39..f0b9201f1 100644
--- a/grub-core/commands/efi/lsefi.c
+++ b/grub-core/commands/efi/lsefi.c
@@ -186,8 +186,12 @@ grub_cmd_lsefi (grub_command_t cmd __attribute__ 
((unused)),
                         (unsigned) protocols[j]->data4[7]);
        }
+ if (protocols)
+       grub_efi_free_pool (protocols);
      }
+ grub_free (handles);
+
    return 0;
  }

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]