mirror_edk2/ShellPkg/DynamicCommand/DpDynamicCommand
Dandan Bi 37d533da76 ShellPkg/Dp: make sure memory is freed before exit
Run dp command now:
Firstly it will get performance records from FPDT and then
parse the DP command. And if encounter invalid parameters,
it will exit directly. Thus the performance records got before
are invalid. And what's worse is that the memory allocated in
getting performance records phase is not freed.

This patch update the code to parse the command firstly and
then get the performance records. And make sure that all the
clean work has been done before exiting.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Jaben Carsey <jaben.carsey@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
2018-06-12 15:50:54 +08:00
..
Dp.c ShellPkg/Dp: make sure memory is freed before exit 2018-06-12 15:50:54 +08:00
Dp.h ShellPkg/Dp: Updated to dump perf log based on FPDT table 2018-02-08 12:50:22 +08:00
Dp.uni ShellPkg/DP: Update the error message info 2018-02-09 17:04:16 +08:00
DpApp.c ShellPkg/dp: Convert from NULL class library to Dynamic Command 2017-11-28 13:22:35 +08:00
DpApp.inf ShellPkg/Dp: Updated to dump perf log based on FPDT table 2018-02-08 12:50:22 +08:00
DpDynamicCommand.c ShellPkg/DynamicCommand: Fix bug that cannot start in boot 2017-11-29 10:32:02 +08:00
DpDynamicCommand.inf ShellPkg/Dp: Updated to dump perf log based on FPDT table 2018-02-08 12:50:22 +08:00
DpInternal.h ShellPkg/Dp: Updated to dump perf log based on FPDT table 2018-02-08 12:50:22 +08:00
DpProfile.c ShellPkg/dp: Convert from NULL class library to Dynamic Command 2017-11-28 13:22:35 +08:00
DpTrace.c ShellPkg/Dp: Updated to dump perf log based on FPDT table 2018-02-08 12:50:22 +08:00
DpUtilities.c ShellPkg/Dp: Updated to dump perf log based on FPDT table 2018-02-08 12:50:22 +08:00
Literals.c ShellPkg/Dp: Updated to dump perf log based on FPDT table 2018-02-08 12:50:22 +08:00
Literals.h ShellPkg/Dp: Updated to dump perf log based on FPDT table 2018-02-08 12:50:22 +08:00