]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ShellPkg/Dp: make sure memory is freed before exit
authorDandan Bi <dandan.bi@intel.com>
Fri, 11 May 2018 06:02:08 +0000 (14:02 +0800)
committerEric Dong <eric.dong@intel.com>
Tue, 12 Jun 2018 07:50:54 +0000 (15:50 +0800)
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>

No differences found