From 5b53eaffe830678cbe651338632b9eee6a5a61c8 Mon Sep 17 00:00:00 2001 From: Olivier Martin Date: Fri, 26 Jul 2013 17:12:12 +0000 Subject: ArmPkg,ArmPlatformPkg: Free memory allocated by Get.*SpaceMap() Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14507 6f19259b-4bc3-4df7-8a09-765794883524 --- ArmPlatformPkg/Library/EblCmdLib/EblCmdLib.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ArmPlatformPkg') diff --git a/ArmPlatformPkg/Library/EblCmdLib/EblCmdLib.c b/ArmPlatformPkg/Library/EblCmdLib/EblCmdLib.c index b45e85d..9319050 100644 --- a/ArmPlatformPkg/Library/EblCmdLib/EblCmdLib.c +++ b/ArmPlatformPkg/Library/EblCmdLib/EblCmdLib.c @@ -337,6 +337,8 @@ EblDumpGcd ( AsciiPrint ("\n"); } + FreePool (MemorySpaceMap); + Status = gDS->GetIoSpaceMap(&NumberOfDescriptors,&IoSpaceMap); if (EFI_ERROR (Status)) { return Status; @@ -355,6 +357,8 @@ EblDumpGcd ( AsciiPrint ("\n"); } + FreePool (IoSpaceMap); + return EFI_SUCCESS; } -- cgit v1.1