summaryrefslogtreecommitdiff
path: root/ArmPlatformPkg
diff options
context:
space:
mode:
authorOlivier Martin <olivier.martin@arm.com>2013-07-26 17:12:12 +0000
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2013-07-26 17:12:12 +0000
commit5b53eaffe830678cbe651338632b9eee6a5a61c8 (patch)
treee14ef7ce628fbaa274d502d0eb3a5eb9b41d1a24 /ArmPlatformPkg
parent6ea162c214c5cc71027ff9e01b02113c449ee04d (diff)
downloadedk2-platforms-5b53eaffe830678cbe651338632b9eee6a5a61c8.tar.xz
ArmPkg,ArmPlatformPkg: Free memory allocated by Get.*SpaceMap()
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin <olivier.martin@arm.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14507 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ArmPlatformPkg')
-rw-r--r--ArmPlatformPkg/Library/EblCmdLib/EblCmdLib.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ArmPlatformPkg/Library/EblCmdLib/EblCmdLib.c b/ArmPlatformPkg/Library/EblCmdLib/EblCmdLib.c
index b45e85d9af..9319050b06 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;
}