} else {\r
return SHELL_INVALID_PARAMETER;\r
}\r
- } \r
+ }\r
+ \r
+ ASSERT (CleanFilePathStr != NULL);\r
\r
//\r
// If we are trying to copy multiple files... make sure we got a directory for the target...\r
StrnCat(DestPath, Node->FileName, PathSize/sizeof(CHAR16) - StrLen(DestPath) -1);\r
}\r
}\r
- FreePool (CleanFilePathStr);\r
+ \r
//\r
// Make sure the path exists\r
//\r
SHELL_FREE_NON_NULL(DestPath);\r
SHELL_FREE_NON_NULL(HiiOutput);\r
SHELL_FREE_NON_NULL(HiiResultOk);\r
+ SHELL_FREE_NON_NULL(CleanFilePathStr);\r
if (Resp == NULL) {\r
SHELL_FREE_NON_NULL(Response);\r
}\r