Revision: 14507
http://sourceforge.net/p/edk2/code/14507
Author: oliviermartin
Date: 2013-07-26 17:12:12 +0000 (Fri, 26 Jul 2013)
Log Message:
-----------
ArmPkg,ArmPlatformPkg: Free memory allocated by Get.*SpaceMap()
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <[email protected]>
Modified Paths:
--------------
trunk/edk2/ArmPkg/Drivers/CpuDxe/AArch64/Mmu.c
trunk/edk2/ArmPkg/Drivers/CpuDxe/ArmV6/Mmu.c
trunk/edk2/ArmPlatformPkg/Library/EblCmdLib/EblCmdLib.c
Modified: trunk/edk2/ArmPkg/Drivers/CpuDxe/AArch64/Mmu.c
===================================================================
--- trunk/edk2/ArmPkg/Drivers/CpuDxe/AArch64/Mmu.c 2013-07-26 17:10:51 UTC
(rev 14506)
+++ trunk/edk2/ArmPkg/Drivers/CpuDxe/AArch64/Mmu.c 2013-07-26 17:12:12 UTC
(rev 14507)
@@ -15,6 +15,7 @@
--*/
+#include <Library/MemoryAllocationLib.h>
#include "CpuDxe.h"
#define TT_ATTR_INDX_INVALID ((UINT32)~0)
@@ -122,6 +123,8 @@
}
}
+ FreePool (MemorySpaceMap);
+
return BaseAddress + (EntryCount * TT_ADDRESS_AT_LEVEL(TableLevel));
}
@@ -185,5 +188,7 @@
EndAddressGcdRegion - BaseAddressGcdRegion,
PageAttributeToGcdAttribute (PageAttribute));
+ FreePool (MemorySpaceMap);
+
return EFI_SUCCESS;
}
Modified: trunk/edk2/ArmPkg/Drivers/CpuDxe/ArmV6/Mmu.c
===================================================================
--- trunk/edk2/ArmPkg/Drivers/CpuDxe/ArmV6/Mmu.c 2013-07-26 17:10:51 UTC
(rev 14506)
+++ trunk/edk2/ArmPkg/Drivers/CpuDxe/ArmV6/Mmu.c 2013-07-26 17:12:12 UTC
(rev 14507)
@@ -2,18 +2,20 @@
Copyright (c) 2009, Hewlett-Packard Company. All rights reserved.<BR>
Portions copyright (c) 2010, Apple Inc. All rights reserved.<BR>
+Portions copyright (c) 2013, ARM Ltd. All rights reserved.<BR>
-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
-
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+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
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+
--*/
+#include <Library/MemoryAllocationLib.h>
#include "CpuDxe.h"
// First Level Descriptors
@@ -330,6 +332,8 @@
SetGcdMemorySpaceAttributes (MemorySpaceMap, NumberOfDescriptors,
NextRegionBase, NextRegionLength, GcdAttributes);
}
+ FreePool (MemorySpaceMap);
+
return EFI_SUCCESS;
}
Modified: trunk/edk2/ArmPlatformPkg/Library/EblCmdLib/EblCmdLib.c
===================================================================
--- trunk/edk2/ArmPlatformPkg/Library/EblCmdLib/EblCmdLib.c 2013-07-26
17:10:51 UTC (rev 14506)
+++ trunk/edk2/ArmPlatformPkg/Library/EblCmdLib/EblCmdLib.c 2013-07-26
17:12:12 UTC (rev 14507)
@@ -337,6 +337,8 @@
AsciiPrint ("\n");
}
+ FreePool (MemorySpaceMap);
+
Status = gDS->GetIoSpaceMap(&NumberOfDescriptors,&IoSpaceMap);
if (EFI_ERROR (Status)) {
return Status;
@@ -355,6 +357,8 @@
AsciiPrint ("\n");
}
+ FreePool (IoSpaceMap);
+
return EFI_SUCCESS;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits