diff options
author | Mike Maslenkin <mike.maslenkin@gmail.com> | 2024-11-07 02:21:28 +0300 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-12-06 17:13:17 +0000 |
commit | f6422011e5e7070f5622a359b06264f1a3d046af (patch) | |
tree | ce0107b904640fe086d82f9100de1d84a872564c | |
parent | 1b283cf437593af74d7b21fd5fb8a75a183d90dd (diff) | |
download | edk2-f6422011e5e7070f5622a359b06264f1a3d046af.zip edk2-f6422011e5e7070f5622a359b06264f1a3d046af.tar.gz edk2-f6422011e5e7070f5622a359b06264f1a3d046af.tar.bz2 |
MdeModulePkg/PlatformDriOverrideDxe: fix HiiOpCodeHandle leak
Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com>
-rw-r--r-- | MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatDriOverrideDxe.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatDriOverrideDxe.c b/MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatDriOverrideDxe.c index 3aa7660..24da4a4 100644 --- a/MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatDriOverrideDxe.c +++ b/MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatDriOverrideDxe.c @@ -421,6 +421,8 @@ UpdateDeviceSelectPage ( &mDevicePathHandleBuffer
);
if (EFI_ERROR (Status) || (DevicePathHandleCount == 0)) {
+ HiiFreeOpCodeHandle (StartOpCodeHandle);
+ HiiFreeOpCodeHandle (EndOpCodeHandle);
return EFI_SUCCESS;
}
@@ -708,6 +710,8 @@ UpdateBindingDriverSelectPage ( &mDriverImageHandleBuffer
);
if (EFI_ERROR (Status) || (DriverImageHandleCount == 0)) {
+ HiiFreeOpCodeHandle (StartOpCodeHandle);
+ HiiFreeOpCodeHandle (EndOpCodeHandle);
return EFI_NOT_FOUND;
}
|