Merge pull request #12282 from taosdata/feature/3.0_mhli
fix(sync): fix memory leak, RespMgr
This commit is contained in:
commit
305d92f7e8
|
@ -522,6 +522,7 @@ void syncNodeClose(SSyncNode* pSyncNode) {
|
|||
ret = raftStoreClose(pSyncNode->pRaftStore);
|
||||
assert(ret == 0);
|
||||
|
||||
syncRespMgrDestroy(pSyncNode->pSyncRespMgr);
|
||||
voteGrantedDestroy(pSyncNode->pVotesGranted);
|
||||
votesRespondDestory(pSyncNode->pVotesRespond);
|
||||
syncIndexMgrDestroy(pSyncNode->pNextIndex);
|
||||
|
@ -1138,6 +1139,7 @@ static int32_t syncNodeAppendNoop(SSyncNode* ths) {
|
|||
syncNodeReplicate(ths);
|
||||
}
|
||||
|
||||
syncEntryDestory(pEntry);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue