fix:core dump if tmq is null

This commit is contained in:
wangmm0220 2023-10-13 14:04:00 +08:00
parent 05c016b667
commit 9cfb15d4f4
1 changed files with 1 additions and 1 deletions

View File

@ -1375,7 +1375,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);