From 38ac6bf1a60f107a597390ad9f52cdb4f51194ee Mon Sep 17 00:00:00 2001 From: Cinnamon Shia Date: Mon, 28 Mar 2016 11:03:22 +0800 Subject: [PATCH] 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 Reviewed-by: Qiu Shumin Reviewed-by: Star Zeng --- PerformancePkg/Dp_App/Dp.c | 3 +++ 1 file changed, 3 insertions(+) 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); } -- 2.39.2