fix TSDB memory leak

This commit is contained in:
Hongze Cheng 2020-06-22 05:26:24 +00:00
parent f829bebf68
commit 270e2bb96f
1 changed files with 1 additions and 0 deletions

View File

@ -587,6 +587,7 @@ static int tsdbCommitToFile(STsdbRepo *pRepo, int fid, SCommitIter *iters, SRWHe
goto _err; goto _err;
} }
tfree(dataDir);
tsdbCloseHelperFile(pHelper, 0); tsdbCloseHelperFile(pHelper, 0);
pthread_rwlock_wrlock(&(pFileH->fhlock)); pthread_rwlock_wrlock(&(pFileH->fhlock));