]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools/VfrCompile: Avoid freeing memory with mismatched functions
authorHao Wu <hao.a.wu@intel.com>
Tue, 27 Sep 2016 05:40:58 +0000 (13:40 +0800)
committerHao Wu <hao.a.wu@intel.com>
Tue, 8 Nov 2016 08:37:17 +0000 (16:37 +0800)
commitfd5425230ed22872126b52f22a7294e352ca3349
tree2a4820e880131f8d83c68deddc064cbfc896e1b1
parenta6ac965bca117ef33b38a96c36643b36757b7698
BaseTools/VfrCompile: Avoid freeing memory with mismatched functions

Memory allocated by operator new[] should be freed using delete[] to avoid
possible memory leak.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Cc: Dandan Bi <dandan.bi@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
BaseTools/Source/C/VfrCompile/VfrCompiler.cpp
BaseTools/Source/C/VfrCompile/VfrError.cpp
BaseTools/Source/C/VfrCompile/VfrFormPkg.cpp
BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp
BaseTools/Source/C/VfrCompile/VfrUtilityLib.h