Merge pull request #21977 from taosdata/mark/tmq

fix:null pointer error
This commit is contained in:
Haojun Liao 2023-07-06 19:18:10 +08:00 committed by GitHub
commit 8fd49013f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -2557,6 +2557,9 @@ static int32_t tmqGetWalInfoCb(void* param, SDataBuf* pMsg, int32_t code) {
} }
static void destroyCommonInfo(SMqVgCommon* pCommon) { static void destroyCommonInfo(SMqVgCommon* pCommon) {
if(pCommon == NULL){
return;
}
taosArrayDestroy(pCommon->pList); taosArrayDestroy(pCommon->pList);
tsem_destroy(&pCommon->rsp); tsem_destroy(&pCommon->rsp);
taosThreadMutexDestroy(&pCommon->mutex); taosThreadMutexDestroy(&pCommon->mutex);