memory leak

This commit is contained in:
dmchen 2023-07-19 10:36:55 +08:00
parent 93766f8c96
commit e7dfb8c26d
1 changed files with 4 additions and 0 deletions

View File

@ -708,6 +708,10 @@ _out:
syncEntryDestroy(pEntry);
pEntry = NULL;
}
if (!nextInBuf) {
syncEntryDestroy(pNextEntry);
pNextEntry = NULL;
}
syncLogBufferValidate(pBuf);
taosThreadMutexUnlock(&pBuf->mutex);
return ret;