diff --git a/src/common/file.cpp b/src/common/file.cpp index 9170c15622c1aa9a3aacb62d361d35919fb435da..d3082368f72892ff31c9dcebbfceadbfe3980641 100644 --- a/src/common/file.cpp +++ b/src/common/file.cpp @@ -432,13 +432,6 @@ bool HdcFile::HandleFileExistenceAndNewness() bool HdcFile::BeginFileOperations() { - uv_fs_t *openReq = new uv_fs_t; - if (openReq == nullptr) { - LogMsg(MSG_FAIL, "HdcFile::SlaveCheck new openReq failed"); - return false; - } - memset_s(openReq, sizeof(uv_fs_t), 0, sizeof(uv_fs_t)); - openReq->data = &ctxNow; ++refCount; uv_fs_open(loopTask, &ctxNow.fsOpenReq, ctxNow.localPath.c_str(), UV_FS_O_TRUNC | UV_FS_O_CREAT | UV_FS_O_WRONLY, S_IWUSR | S_IRUSR | S_IRGRP | S_IROTH, OnFileOpen);