fix(sync): fix memory leak, RespMgr
This commit is contained in:
parent
b71b5284ae
commit
589048e96b
|
@ -522,6 +522,7 @@ void syncNodeClose(SSyncNode* pSyncNode) {
|
||||||
ret = raftStoreClose(pSyncNode->pRaftStore);
|
ret = raftStoreClose(pSyncNode->pRaftStore);
|
||||||
assert(ret == 0);
|
assert(ret == 0);
|
||||||
|
|
||||||
|
syncRespMgrDestroy(pSyncNode->pSyncRespMgr);
|
||||||
voteGrantedDestroy(pSyncNode->pVotesGranted);
|
voteGrantedDestroy(pSyncNode->pVotesGranted);
|
||||||
votesRespondDestory(pSyncNode->pVotesRespond);
|
votesRespondDestory(pSyncNode->pVotesRespond);
|
||||||
syncIndexMgrDestroy(pSyncNode->pNextIndex);
|
syncIndexMgrDestroy(pSyncNode->pNextIndex);
|
||||||
|
@ -1138,6 +1139,7 @@ static int32_t syncNodeAppendNoop(SSyncNode* ths) {
|
||||||
syncNodeReplicate(ths);
|
syncNodeReplicate(ths);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
syncEntryDestory(pEntry);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue