X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=Nt32Pkg%2FMiscSubClassPlatformDxe%2FMiscOemStringFunction.c;h=077660257ac1073bcd14ee9c40ccc8e2f0f17d68;hb=77557b76427144737ff22bf3c993b2402aef6ad6;hp=17b80e49cb8f3a84a71a9129de52963ddc39caf5;hpb=5e973c9630be45e950aa38c629a34033c85f9637;p=mirror_edk2.git diff --git a/Nt32Pkg/MiscSubClassPlatformDxe/MiscOemStringFunction.c b/Nt32Pkg/MiscSubClassPlatformDxe/MiscOemStringFunction.c index 17b80e49cb..077660257a 100644 --- a/Nt32Pkg/MiscSubClassPlatformDxe/MiscOemStringFunction.c +++ b/Nt32Pkg/MiscSubClassPlatformDxe/MiscOemStringFunction.c @@ -2,8 +2,8 @@ boot information boot time changes. SMBIOS type 11. -Copyright (c) 2009, Intel Corporation -All rights reserved. This program and the accompanying materials +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 http://opensource.org/licenses/bsd-license.php @@ -69,13 +69,8 @@ MISC_SMBIOS_TABLE_FUNCTION(OemString) // // 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; }