]> git.proxmox.com Git - mirror_edk2.git/commitdiff
PerformancePkg/Dp_App: Fix a memory leak issue in Dp.
authorCinnamon Shia <cinnamon.shia@hpe.com>
Mon, 28 Mar 2016 03:03:22 +0000 (11:03 +0800)
committerStar Zeng <star.zeng@intel.com>
Tue, 29 Mar 2016 01:16:24 +0000 (09:16 +0800)
The allocated memory of ParamPackage is not freed.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Cinnamon Shia <cinnamon.shia@hpe.com>
Reviewed-by: Qiu Shumin <shumin.qiu@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
PerformancePkg/Dp_App/Dp.c

index e36a03209187ccbc174767ce757338f78046ea68..b24a0de72d74c952b285f3f9150273535de87301 100644 (file)
@@ -526,6 +526,9 @@ Done:
   SafeFreePool (StringPtr);\r
   SafeFreePool (mPrintTokenBuffer);\r
 \r
+  if (ParamPackage != NULL) {\r
+    ShellCommandLineFreeVarList (ParamPackage);\r
+  }\r
   if (CustomCumulativeData != NULL) {\r
     SafeFreePool (CustomCumulativeData->Name);\r
   }\r