diff --git a/frameworks/native/distributed_file_inner/src/copy/file_copy_manager.cpp b/frameworks/native/distributed_file_inner/src/copy/file_copy_manager.cpp index 70e25f9adfd7a3d5b523ec548b1173f0a55550ba..974599b9ebc0a7b3a95bdbf0982e1d9316feac82 100644 --- a/frameworks/native/distributed_file_inner/src/copy/file_copy_manager.cpp +++ b/frameworks/native/distributed_file_inner/src/copy/file_copy_manager.cpp @@ -200,6 +200,7 @@ int32_t FileCopyManager::Copy(const std::string &srcUri, const std::string &dest } if (ret != E_OK) { + RemoveFileInfos(infos); if (processCallback == nullptr) { return EINVAL; }