ShellPkg: Corrected CatSPrint usage to prevent memory leaks.
authorCecil Sheng <cecil.sheng@hpe.com>
Thu, 19 Nov 2015 08:37:03 +0000 (08:37 +0000)
committershenshushi <shenshushi@Edk2>
Thu, 19 Nov 2015 08:37:03 +0000 (08:37 +0000)
commit1a6f74d98887377bd5bb61484e54a3ac406f4a5d
tree7ed40b75d6d0e90e85417484320df5bce48c0f42
parent55df704dd24928b60b10bbb9dec5bfa7682910de
ShellPkg: Corrected CatSPrint usage to prevent memory leaks.

CatSPrint allocates return buffer for the caller. The caller doesn't have to allocate one, and has to free the used buffers.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Cecil Sheng <cecil.sheng@hpe.com>
Reviewed-by: Qiu Shumin <shumin.qiu@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18902 6f19259b-4bc3-4df7-8a09-765794883524
ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c