Revision: 16148
http://sourceforge.net/p/edk2/code/16148
Author: shenshushi
Date: 2014-09-19 01:39:45 +0000 (Fri, 19 Sep 2014)
Log Message:
-----------
ShellPkg: ShellPkg: Fix the cp fail while coping directory.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ni Ruiyu <[email protected]>
Signed-off-by: Qiu Shumin <[email protected]>
Reviewed-by: Jaben Carsey <[email protected]>
Modified Paths:
--------------
trunk/edk2/ShellPkg/Library/UefiShellLevel2CommandsLib/Cp.c
Modified: trunk/edk2/ShellPkg/Library/UefiShellLevel2CommandsLib/Cp.c
===================================================================
--- trunk/edk2/ShellPkg/Library/UefiShellLevel2CommandsLib/Cp.c 2014-09-19
01:34:44 UTC (rev 16147)
+++ trunk/edk2/ShellPkg/Library/UefiShellLevel2CommandsLib/Cp.c 2014-09-19
01:39:45 UTC (rev 16148)
@@ -487,7 +487,7 @@
StrnCat(DestPath, Node->FileName, PathSize/sizeof(CHAR16) -
StrLen(DestPath) -1);
}
}
- FreePool (CleanFilePathStr);
+
//
// Make sure the path exists
//
@@ -540,6 +540,7 @@
SHELL_FREE_NON_NULL(DestPath);
SHELL_FREE_NON_NULL(HiiOutput);
SHELL_FREE_NON_NULL(HiiResultOk);
+ SHELL_FREE_NON_NULL(CleanFilePathStr);
if (Resp == NULL) {
SHELL_FREE_NON_NULL(Response);
}
------------------------------------------------------------------------------
Slashdot TV. Video for Nerds. Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits