On 2016/3/28 13:36, Zeng, Star wrote:
On 2016/3/28 11:03, Cinnamon Shia wrote:
The allocated memory of ParamPackage is not freed.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Cinnamon Shia <cinnamon.s...@hpe.com>
Reviewed-by: Star Zeng <star.z...@intel.com>
Pushed at 38ac6bf1a60f107a597390ad9f52cdb4f51194ee.
Thanks for the contribution.
Thanks,
Star
---
PerformancePkg/Dp_App/Dp.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/PerformancePkg/Dp_App/Dp.c b/PerformancePkg/Dp_App/Dp.c
index e36a032..b24a0de 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);
}
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel