diff options
author | Ni Ruiyu <ruiyu.ni@intel.com> | 2014-09-19 01:39:45 +0000 |
---|---|---|
committer | shenshushi <shenshushi@6f19259b-4bc3-4df7-8a09-765794883524> | 2014-09-19 01:39:45 +0000 |
commit | a6e84d95f50a10e23ee9861270fb84057b5af2e9 (patch) | |
tree | 6fa6c9873fb47b53042ba35e172fa84d227cd2e4 | |
parent | 0faec4cf5256beff7b2e9cd4431a32f200515872 (diff) | |
download | edk2-a6e84d95f50a10e23ee9861270fb84057b5af2e9.zip edk2-a6e84d95f50a10e23ee9861270fb84057b5af2e9.tar.gz edk2-a6e84d95f50a10e23ee9861270fb84057b5af2e9.tar.bz2 |
ShellPkg: ShellPkg: Fix the cp fail while coping directory.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ni Ruiyu <ruiyu.ni@intel.com>
Signed-off-by: Qiu Shumin <shumin.qiu@intel.com>
Reviewed-by: Jaben Carsey <Jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16148 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | ShellPkg/Library/UefiShellLevel2CommandsLib/Cp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ShellPkg/Library/UefiShellLevel2CommandsLib/Cp.c b/ShellPkg/Library/UefiShellLevel2CommandsLib/Cp.c index efc1408..6380842 100644 --- a/ShellPkg/Library/UefiShellLevel2CommandsLib/Cp.c +++ b/ShellPkg/Library/UefiShellLevel2CommandsLib/Cp.c @@ -487,7 +487,7 @@ ValidateAndCopyFiles( StrnCat(DestPath, Node->FileName, PathSize/sizeof(CHAR16) - StrLen(DestPath) -1);
}
}
- FreePool (CleanFilePathStr);
+
//
// Make sure the path exists
//
@@ -540,6 +540,7 @@ ValidateAndCopyFiles( 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);
}
|