fix:null pointer error
This commit is contained in:
parent
7e38ef7091
commit
ba9ab1f20b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue