mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-23 13:44:33 +02:00
SecurityPkg/OpalPassword: fix HiiOpCodeHandle leak on error path
Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com>
This commit is contained in:
parent
fd9501f582
commit
b1cdfc556f
@ -650,6 +650,7 @@ DriverCallback (
|
||||
|
||||
EndOpCodeHandle = HiiAllocateOpCodeHandle ();
|
||||
if (EndOpCodeHandle == NULL) {
|
||||
HiiFreeOpCodeHandle (StartOpCodeHandle);
|
||||
return EFI_OUT_OF_RESOURCES;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user