diff options
author | Cinnamon Shia <cinnamon.shia@hpe.com> | 2016-03-28 11:03:22 +0800 |
---|---|---|
committer | Star Zeng <star.zeng@intel.com> | 2016-03-29 09:16:24 +0800 |
commit | 38ac6bf1a60f107a597390ad9f52cdb4f51194ee (patch) | |
tree | 5144c47363fc94b80fa35ff199f27fa073134f9a /PerformancePkg/Dp_App | |
parent | 4fa7b3301ef31f2787b9d0bde6694203a67b3ff2 (diff) | |
download | edk2-platforms-38ac6bf1a60f107a597390ad9f52cdb4f51194ee.tar.xz |
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>
Diffstat (limited to 'PerformancePkg/Dp_App')
-rw-r--r-- | PerformancePkg/Dp_App/Dp.c | 3 |
1 files changed, 3 insertions, 0 deletions
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);
}
|