Merge pull request #11787 from taosdata/feature/sync-vnode-merge-3.0
fix bug, syncEnv free NULL
This commit is contained in:
commit
1af668b490
|
@ -91,8 +91,10 @@ static SSyncEnv *doSyncEnvStart() {
|
|||
}
|
||||
|
||||
static int32_t doSyncEnvStop(SSyncEnv *pSyncEnv) {
|
||||
if (pSyncEnv != NULL) {
|
||||
taosTmrCleanUp(pSyncEnv->pTimerManager);
|
||||
taosMemoryFree(pSyncEnv);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue