Merge pull request #23249 from taosdata/feat/TD-26052

fix:core dump if tmq is null
This commit is contained in:
Haojun Liao 2023-10-13 16:50:48 +08:00 committed by GitHub
commit cdd480d186
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);