Svace: Fixed MEMORY_LEAK.STRUCT warning.

This commit is contained in:
ocbuild 2022-01-13 16:46:19 +03:00
parent 74caaad028
commit e2c42d4d58
1 changed files with 1 additions and 0 deletions

View File

@ -479,6 +479,7 @@ SmbiosAdd (
HandleEntry = AllocateZeroPool (sizeof(SMBIOS_HANDLE_ENTRY));
if (HandleEntry == NULL) {
EfiReleaseLock (&Private->DataLock);
FreePool (SmbiosEntry);
return EFI_OUT_OF_RESOURCES;
}