fix memory leak

This commit is contained in:
Hongze Cheng 2021-02-05 16:21:08 +08:00
parent ffb7b03ad5
commit 9c12a2852a
1 changed files with 1 additions and 0 deletions

View File

@ -227,6 +227,7 @@ void *tsdbFreeFS(STsdbFS *pfs) {
pfs->metaCache = NULL;
pfs->cstatus = tsdbFreeFSStatus(pfs->cstatus);
pthread_rwlock_destroy(&(pfs->lock));
free(pfs);
}
return NULL;