mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
MdeModulePkg/PlatformDriOverrideDxe: fix HiiOpCodeHandle leak
Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com>
This commit is contained in:
parent
1b283cf437
commit
f6422011e5
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user