ShellPkg: remove double free operation
authorJaben Carsey <jaben.carsey@intel.com>
Fri, 10 Jan 2014 16:41:54 +0000 (16:41 +0000)
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 10 Jan 2014 16:41:54 +0000 (16:41 +0000)
This pointer gets free twice and this does not work.

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@15094 6f19259b-4bc3-4df7-8a09-765794883524

ShellPkg/Library/UefiShellLevel2CommandsLib/Ls.c

index 4d0a1563e3cce37f4b5a08babb02bb4b6236385b..cc4a9d4cf22338fe25f4654df00d3afc2b251c13 100644 (file)
@@ -393,7 +393,6 @@ PrintLsOutput(
 \r
   FreePool(CorrectedPath);\r
   ShellCloseFileMetaArg(&ListHead);\r
-  FreePool(ListHead);\r
   return (ShellStatus);\r
 }\r
 \r