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>
This commit is contained in:
Cinnamon Shia 2016-03-28 11:03:22 +08:00 committed by Star Zeng
parent 4fa7b3301e
commit 38ac6bf1a6
1 changed files with 3 additions and 0 deletions

View File

@ -526,6 +526,9 @@ Done:
SafeFreePool (StringPtr);
SafeFreePool (mPrintTokenBuffer);
if (ParamPackage != NULL) {
ShellCommandLineFreeVarList (ParamPackage);
}
if (CustomCumulativeData != NULL) {
SafeFreePool (CustomCumulativeData->Name);
}