Merge pull request #5163 from taosdata/hotfix/TD-2945

fix memory leak
This commit is contained in:
Shengliang Guan 2021-02-06 16:14:29 +08:00 committed by GitHub
commit 4a74c992e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;