comment doSyncEnvStart 2

This commit is contained in:
Li Minghao 2022-04-23 23:55:01 -07:00
parent e01cb71cea
commit 1afda11b9c
1 changed files with 2 additions and 0 deletions

View File

@ -92,10 +92,12 @@ static SSyncEnv *doSyncEnvStart() {
}
static int32_t doSyncEnvStop(SSyncEnv *pSyncEnv) {
assert(pSyncEnv == gSyncEnv);
if (pSyncEnv != NULL) {
taosTmrCleanUp(pSyncEnv->pTimerManager);
taosMemoryFree(pSyncEnv);
}
gSyncEnv = NULL;
return 0;
}