Merge pull request #27555 from taosdata/fix/TD-31301

fix mem leak possible
This commit is contained in:
Hongze Cheng 2024-08-30 10:33:16 +08:00 committed by GitHub
commit 5ed423a4ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 14 additions and 14 deletions

View File

@ -258,7 +258,7 @@ static void cliWalkCb(uv_handle_t* handle, void* arg);
int i = 0, sz = transQueueSize(&conn->cliMsgs); \
for (; i < sz; i++) { \
pMsg = transQueueGet(&conn->cliMsgs, i); \
if (pMsg->ctx != NULL && (uint64_t)pMsg->ctx->ahandle == ahandle) { \
if (pMsg->msg.msgType != TDMT_SCH_DROP_TASK && pMsg->ctx != NULL && (uint64_t)pMsg->ctx->ahandle == ahandle) { \
break; \
} \
} \