fix mem leak

This commit is contained in:
yihaoDeng 2023-11-14 20:58:35 +08:00
parent 20e1bd9cff
commit b74105727d
1 changed files with 2 additions and 0 deletions

View File

@ -899,6 +899,7 @@ _EXIT:
taosMemoryFree(pChkpDir);
taosMemoryFree(pChkpIdDir);
taosReleaseRef(taskDbWrapperId, refId);
taosMemoryFree(ppCf);
return code;
}
int32_t streamBackendDoCheckpoint(void* arg, int64_t chkpId) { return taskDbDoCheckpoint(arg, chkpId); }
@ -3594,6 +3595,7 @@ void dbChkpDestroy(SDbChkp* pChkp) {
taosMemoryFree(pChkp->pCurrent);
taosMemoryFree(pChkp->pManifest);
taosMemoryFree(pChkp);
}
int32_t dbChkpInit(SDbChkp* p) {