fix(sync): fix memory leak when break

This commit is contained in:
Minghao Li 2022-05-09 17:25:42 +08:00
parent 39bf90c0da
commit b71b5284ae
1 changed files with 2 additions and 0 deletions

View File

@ -65,6 +65,8 @@ void syncMaybeAdvanceCommitIndex(SSyncNode* pSyncNode) {
newCommitIndex = index;
sTrace("syncMaybeAdvanceCommitIndex maybe to update, newCommitIndex:%ld commit, pSyncNode->commitIndex:%ld",
newCommitIndex, pSyncNode->commitIndex);
syncEntryDestory(pEntry);
break;
} else {
sTrace(