mirror of https://github.com/acidanthera/audk.git
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 ();
|
EndOpCodeHandle = HiiAllocateOpCodeHandle ();
|
||||||
if (EndOpCodeHandle == NULL) {
|
if (EndOpCodeHandle == NULL) {
|
||||||
|
HiiFreeOpCodeHandle (StartOpCodeHandle);
|
||||||
return EFI_OUT_OF_RESOURCES;
|
return EFI_OUT_OF_RESOURCES;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue