From 9c12a2852ac641acc72405aa34ee58beec012185 Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Fri, 5 Feb 2021 16:21:08 +0800 Subject: [PATCH] fix memory leak --- src/tsdb/src/tsdbFS.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tsdb/src/tsdbFS.c b/src/tsdb/src/tsdbFS.c index 28d7abff3e..cbff4fbeaa 100644 --- a/src/tsdb/src/tsdbFS.c +++ b/src/tsdb/src/tsdbFS.c @@ -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; -- GitLab