mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
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:
parent
4fa7b3301e
commit
38ac6bf1a6
@ -526,6 +526,9 @@ Done:
|
||||
SafeFreePool (StringPtr);
|
||||
SafeFreePool (mPrintTokenBuffer);
|
||||
|
||||
if (ParamPackage != NULL) {
|
||||
ShellCommandLineFreeVarList (ParamPackage);
|
||||
}
|
||||
if (CustomCumulativeData != NULL) {
|
||||
SafeFreePool (CustomCumulativeData->Name);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user