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); }