On 2016/3/28 13:38, 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 3751a092b67f2d3481fa2295cb45a0afda6a9118.
Thanks for the contribution.

Thanks,
Star


---
  ShellPkg/Library/UefiDpLib/Dp.c | 3 +++
  1 file changed, 3 insertions(+)

diff --git a/ShellPkg/Library/UefiDpLib/Dp.c
b/ShellPkg/Library/UefiDpLib/Dp.c
index 0176e31..54fd0d1 100644
--- a/ShellPkg/Library/UefiDpLib/Dp.c
+++ b/ShellPkg/Library/UefiDpLib/Dp.c
@@ -386,6 +386,9 @@ ShellCommandRunDp (
    }

  Done:
+  if (ParamPackage != NULL) {
+    ShellCommandLineFreeVarList (ParamPackage);
+  }
    SHELL_FREE_NON_NULL (StringPtr);
    if (CustomCumulativeData != NULL) {
      SHELL_FREE_NON_NULL (CustomCumulativeData->Name);


_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to