mirror of https://github.com/acidanthera/audk.git
ShellPkg/UefiDpLib: 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
38ac6bf1a6
commit
3751a092b6
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue