diff options
author | Olivier Martin <olivier.martin@arm.com> | 2013-07-26 17:12:12 +0000 |
---|---|---|
committer | oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> | 2013-07-26 17:12:12 +0000 |
commit | 5b53eaffe830678cbe651338632b9eee6a5a61c8 (patch) | |
tree | e14ef7ce628fbaa274d502d0eb3a5eb9b41d1a24 /ArmPlatformPkg | |
parent | 6ea162c214c5cc71027ff9e01b02113c449ee04d (diff) | |
download | edk2-5b53eaffe830678cbe651338632b9eee6a5a61c8.zip edk2-5b53eaffe830678cbe651338632b9eee6a5a61c8.tar.gz edk2-5b53eaffe830678cbe651338632b9eee6a5a61c8.tar.bz2 |
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.c | 4 |
1 files changed, 4 insertions, 0 deletions
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;
}
|