From 993b8cddddce6d22404b3bedd023c96120a0c641 Mon Sep 17 00:00:00 2001 From: lzeng14 Date: Fri, 2 Dec 2011 01:08:05 +0000 Subject: Free memory allocated by ReadSection. Signed-off-by: lzeng14 Reviewed-by: ZhangCaoIntel git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12811 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/Acpi/AcpiPlatformDxe/AcpiPlatform.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/MdeModulePkg/Universal/Acpi/AcpiPlatformDxe/AcpiPlatform.c b/MdeModulePkg/Universal/Acpi/AcpiPlatformDxe/AcpiPlatform.c index 06097ee540..44bdd94fa8 100644 --- a/MdeModulePkg/Universal/Acpi/AcpiPlatformDxe/AcpiPlatform.c +++ b/MdeModulePkg/Universal/Acpi/AcpiPlatformDxe/AcpiPlatform.c @@ -1,7 +1,7 @@ /** @file Sample ACPI Platform Driver - Copyright (c) 2008 - 2010, Intel Corporation. All rights reserved.
+ Copyright (c) 2008 - 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 @@ -237,6 +237,12 @@ AcpiPlatformEntryPoint ( TableSize, &TableHandle ); + + // + // Free memory allocated by ReadSection + // + gBS->FreePool (CurrentTable); + if (EFI_ERROR(Status)) { return EFI_ABORTED; } -- cgit v1.2.3