mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-24 22:24:37 +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
|
&mDevicePathHandleBuffer
|
||||||
);
|
);
|
||||||
if (EFI_ERROR (Status) || (DevicePathHandleCount == 0)) {
|
if (EFI_ERROR (Status) || (DevicePathHandleCount == 0)) {
|
||||||
|
HiiFreeOpCodeHandle (StartOpCodeHandle);
|
||||||
|
HiiFreeOpCodeHandle (EndOpCodeHandle);
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -708,6 +710,8 @@ UpdateBindingDriverSelectPage (
|
|||||||
&mDriverImageHandleBuffer
|
&mDriverImageHandleBuffer
|
||||||
);
|
);
|
||||||
if (EFI_ERROR (Status) || (DriverImageHandleCount == 0)) {
|
if (EFI_ERROR (Status) || (DriverImageHandleCount == 0)) {
|
||||||
|
HiiFreeOpCodeHandle (StartOpCodeHandle);
|
||||||
|
HiiFreeOpCodeHandle (EndOpCodeHandle);
|
||||||
return EFI_NOT_FOUND;
|
return EFI_NOT_FOUND;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user