diff options
author | Jaben Carsey <jaben.carsey@intel.com> | 2014-01-10 16:41:54 +0000 |
---|---|---|
committer | jcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524> | 2014-01-10 16:41:54 +0000 |
commit | 012305d551c953b6581ec38ef4534355e428cc8e (patch) | |
tree | d48d27f4fc2e9612cb1afb2916d83416225f9591 /ShellPkg/Library | |
parent | c357fd6a1f79e2d7b0a1bd01994b8d33925bfff5 (diff) | |
download | edk2-platforms-012305d551c953b6581ec38ef4534355e428cc8e.tar.xz |
ShellPkg: remove double free operation
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
Diffstat (limited to 'ShellPkg/Library')
-rw-r--r-- | ShellPkg/Library/UefiShellLevel2CommandsLib/Ls.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/ShellPkg/Library/UefiShellLevel2CommandsLib/Ls.c b/ShellPkg/Library/UefiShellLevel2CommandsLib/Ls.c index 4d0a1563e3..cc4a9d4cf2 100644 --- a/ShellPkg/Library/UefiShellLevel2CommandsLib/Ls.c +++ b/ShellPkg/Library/UefiShellLevel2CommandsLib/Ls.c @@ -393,7 +393,6 @@ PrintLsOutput( FreePool(CorrectedPath);
ShellCloseFileMetaArg(&ListHead);
- FreePool(ListHead);
return (ShellStatus);
}
|