]> git.proxmox.com Git - mirror_edk2.git/commit - ShellPkg/Application/Shell/ShellProtocol.c
ShellPkg: Fix memory leak in ShellProtocol.
authorQiu Shumin <shumin.qiu@intel.com>
Wed, 23 Dec 2015 05:44:19 +0000 (05:44 +0000)
committershenshushi <shenshushi@Edk2>
Wed, 23 Dec 2015 05:44:19 +0000 (05:44 +0000)
commit06e5ae774ecf716216b325c432e70f7368c0d694
treed0d91319699cc44ee1621bd83c6878a1ced6d99f
parent5772d0f540cd770dccb37c8742f173c57109bea7
ShellPkg: Fix memory leak in ShellProtocol.

1. Close unused file handle.
2. Free the local allocated buffer function returned.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Qiu Shumin <shumin.qiu@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19481 6f19259b-4bc3-4df7-8a09-765794883524
ShellPkg/Application/Shell/ShellProtocol.c