]> git.proxmox.com Git - mirror_edk2.git/commit
ShellPkg: remove memory leak in file handle list
authorJaben Carsey <jaben.carsey@intel.com>
Thu, 9 Jan 2014 18:05:24 +0000 (18:05 +0000)
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 9 Jan 2014 18:05:24 +0000 (18:05 +0000)
commit4f67c7ffa1ed419e44084b2679c49a2f4e95ba65
treeed9a7b22c1e3dabc523b120b55ba97701bfa0c09
parent4922715d85564441d7cf16bac1a1fa67673f6877
ShellPkg: remove memory leak in file handle list

The shell was not freeing sufficient memory when freeing a list of files.  The structure contained a pointer which was being left behind.  I made a new function to replace the shared freeing function which frees the “Path” member of the SHELL_COMMAND_FILE_HANDLE structure.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-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@15073 6f19259b-4bc3-4df7-8a09-765794883524
ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.c