summaryrefslogtreecommitdiffstats
path: root/PerformancePkg
diff options
context:
space:
mode:
authorCinnamon Shia <cinnamon.shia@hpe.com>2016-03-28 11:03:22 +0800
committerStar Zeng <star.zeng@intel.com>2016-03-29 09:16:24 +0800
commit38ac6bf1a60f107a597390ad9f52cdb4f51194ee (patch)
tree5144c47363fc94b80fa35ff199f27fa073134f9a /PerformancePkg
parent4fa7b3301ef31f2787b9d0bde6694203a67b3ff2 (diff)
downloadedk2-38ac6bf1a60f107a597390ad9f52cdb4f51194ee.tar.gz
edk2-38ac6bf1a60f107a597390ad9f52cdb4f51194ee.tar.bz2
edk2-38ac6bf1a60f107a597390ad9f52cdb4f51194ee.zip
PerformancePkg/Dp_App: Fix a memory leak issue in Dp.
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>
Diffstat (limited to 'PerformancePkg')
-rw-r--r--PerformancePkg/Dp_App/Dp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/PerformancePkg/Dp_App/Dp.c b/PerformancePkg/Dp_App/Dp.c
index e36a032091..b24a0de72d 100644
--- a/PerformancePkg/Dp_App/Dp.c
+++ b/PerformancePkg/Dp_App/Dp.c
@@ -526,6 +526,9 @@ Done:
SafeFreePool (StringPtr);
SafeFreePool (mPrintTokenBuffer);
+ if (ParamPackage != NULL) {
+ ShellCommandLineFreeVarList (ParamPackage);
+ }
if (CustomCumulativeData != NULL) {
SafeFreePool (CustomCumulativeData->Name);
}