!1585 fix: req每次调用后需要清理

Merge pull request !1585 from liupeng298/master
This commit is contained in:
openharmony_ci 2024-09-29 08:30:43 +00:00 committed by Gitee
commit 4555b8dc82
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -289,6 +289,7 @@ void HdcTransferBase::OnFileIO(uv_fs_t *req)
++thisClass->refCount;
if (req->fs_type == UV_FS_WRITE) {
uv_fs_fsync(thisClass->loopTask, &context->fsSyncReq, context->fsOpenReq.result, nullptr);
uv_fs_req_cleanup(&context->fsSyncReq);
}
WRITE_LOG(LOG_DEBUG, "channelId:%u result:%d, closeReqSubmitted:%d",
thisClass->taskInfo->channelId, context->fsOpenReq.result, context->closeReqSubmitted);