mirror of https://github.com/acidanthera/audk.git
Svace: Fixed MEMORY_LEAK.STRUCT warning.
This commit is contained in:
parent
74caaad028
commit
e2c42d4d58
|
@ -479,6 +479,7 @@ SmbiosAdd (
|
||||||
HandleEntry = AllocateZeroPool (sizeof(SMBIOS_HANDLE_ENTRY));
|
HandleEntry = AllocateZeroPool (sizeof(SMBIOS_HANDLE_ENTRY));
|
||||||
if (HandleEntry == NULL) {
|
if (HandleEntry == NULL) {
|
||||||
EfiReleaseLock (&Private->DataLock);
|
EfiReleaseLock (&Private->DataLock);
|
||||||
|
FreePool (SmbiosEntry);
|
||||||
return EFI_OUT_OF_RESOURCES;
|
return EFI_OUT_OF_RESOURCES;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue