fix:null pointer error

This commit is contained in:
wangmm0220 2023-07-06 17:02:58 +08:00
parent 7e38ef7091
commit ba9ab1f20b
1 changed files with 3 additions and 0 deletions

View File

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