fix: definite lost in tcache.c found by valgrind

This commit is contained in:
Shengliang Guan 2022-04-18 10:21:25 +08:00
parent bab8833dfc
commit 884bf3775f
1 changed files with 2 additions and 0 deletions

View File

@ -910,6 +910,8 @@ void taosCacheRefresh(SCacheObj *pCacheObj, __cache_trav_fn_t fp, void *param1)
void taosStopCacheRefreshWorker(void) {
stopRefreshWorker = true;
taosThreadJoin(cacheRefreshWorker, NULL);
taosArrayDestroy(pCacheArrayList);
}
size_t taosCacheGetNumOfObj(const SCacheObj* pCacheObj) {