From: Cinnamon Shia Date: Mon, 28 Mar 2016 03:03:22 +0000 (+0800) Subject: PerformancePkg/Dp_App: Fix a memory leak issue in Dp. X-Git-Tag: edk2-stable201903~7491 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=38ac6bf1a60f107a597390ad9f52cdb4f51194ee 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 --- 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); }