fix bug, syncEnv free NULL
This commit is contained in:
parent
caaa87ed83
commit
9c9d57c961
|
@ -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