diff options
| author | Baraneedharan Anbazhagan <anbazhagan@hp.com> | 2026-10-25 16:43:16 +0300 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2026-11-03 05:27:05 +0300 |
| commit | 011eca2e8f8bba9b59a60f100368ad287c99a181 (patch) | |
| tree | cff02fbb8a6c8cb385eba85e880fcd3e5ba49dfd /MdeModulePkg/Library | |
| parent | 859d22b8ef45e43b91716eeab60fae855a6c617b (diff) | |
| download | edk2-011eca2e8f8bba9b59a60f100368ad287c99a181.tar.xz | |
MdeModulePkg: Fix OptionOrder double free
Remove the duplicate OptionOrder free on reallocation failure in
EfiBootManagerGetLoadOptions().
Signed-off-by: Anbazhagan Baraneedharan <anbazhagan@hp.com>
Diffstat (limited to 'MdeModulePkg/Library')
| -rw-r--r-- | MdeModulePkg/Library/UefiBootManagerLib/BmLoadOption.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Library/UefiBootManagerLib/BmLoadOption.c b/MdeModulePkg/Library/UefiBootManagerLib/BmLoadOption.c index 66faf57322..1499f908ba 100644 --- a/MdeModulePkg/Library/UefiBootManagerLib/BmLoadOption.c +++ b/MdeModulePkg/Library/UefiBootManagerLib/BmLoadOption.c @@ -3,6 +3,7 @@ Copyright (c) 2011 - 2019, Intel Corporation. All rights reserved.<BR>
(C) Copyright 2015-2018 Hewlett Packard Enterprise Development LP<BR>
+(c) Copyright 2026 HP Development Company, L.P.
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
@@ -1163,7 +1164,6 @@ EfiBootManagerGetLoadOptions ( Options = ReallocatePool (*OptionCount * sizeof (EFI_BOOT_MANAGER_LOAD_OPTION), OptionIndex * sizeof (EFI_BOOT_MANAGER_LOAD_OPTION), Options);
if (Options == NULL) {
ASSERT (Options != NULL);
- FreePool (OptionOrder);
return NULL;
}
|
