X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=Nt32Pkg%2FMiscSubClassPlatformDxe%2FMiscBootInformationFunction.c;fp=Nt32Pkg%2FMiscSubClassPlatformDxe%2FMiscBootInformationFunction.c;h=0b916f2db2fbdbd7a1df6336c6fa860088c98a68;hp=25105c3e413f5de40c2b426571b2f330776fca2f;hb=7ee85aa2ff751ce2420649bbb6f7db2d823dbd40;hpb=49975acb395627a82ea58010c658d594d8111651 diff --git a/Nt32Pkg/MiscSubClassPlatformDxe/MiscBootInformationFunction.c b/Nt32Pkg/MiscSubClassPlatformDxe/MiscBootInformationFunction.c index 25105c3e41..0b916f2db2 100644 --- a/Nt32Pkg/MiscSubClassPlatformDxe/MiscBootInformationFunction.c +++ b/Nt32Pkg/MiscSubClassPlatformDxe/MiscBootInformationFunction.c @@ -2,7 +2,7 @@ boot information boot time changes. SMBIOS type 32. -Copyright (c) 2009, Intel Corporation. All rights reserved.
+Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -61,13 +61,8 @@ MISC_SMBIOS_TABLE_FUNCTION(BootInformationStatus) // // Now we have got the full smbios record, call smbios protocol to add this record. // - SmbiosHandle = 0; - Status = Smbios-> Add( - Smbios, - NULL, - &SmbiosHandle, - (EFI_SMBIOS_TABLE_HEADER *) SmbiosRecord - ); + Status = AddSmbiosRecord (Smbios, &SmbiosHandle, (EFI_SMBIOS_TABLE_HEADER *) SmbiosRecord); + FreePool(SmbiosRecord); return Status; }