]> git.proxmox.com Git - mirror_edk2.git/blobdiff - PerformancePkg/Dp_App/Dp.c
PerformancePkg/Dp_App: Fix a memory leak issue in Dp.
[mirror_edk2.git] / 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