diff --git a/source/client/src/clientTmq.c b/source/client/src/clientTmq.c index 781b362674..e998db989c 100644 --- a/source/client/src/clientTmq.c +++ b/source/client/src/clientTmq.c @@ -1366,7 +1366,7 @@ END: taosReleaseRef(tmqMgmt.rsetId, refId); FAIL: - tsem_post(&tmq->rspSem); + if(tmq) tsem_post(&tmq->rspSem); taosMemoryFree(pParam); if(pMsg) taosMemoryFreeClear(pMsg->pData); if(pMsg) taosMemoryFreeClear(pMsg->pEpSet);