提交 cabddb2c 编写于 作者: S slguan

[TD-230] fix memory links

上级 077d9952
...@@ -108,7 +108,6 @@ void mgmtCleanUpShell() { ...@@ -108,7 +108,6 @@ void mgmtCleanUpShell() {
} }
if (tsQhandleCache) { if (tsQhandleCache) {
taosCacheEmpty(tsQhandleCache);
taosCacheCleanup(tsQhandleCache); taosCacheCleanup(tsQhandleCache);
tsQhandleCache = NULL; tsQhandleCache = NULL;
} }
......
...@@ -117,7 +117,7 @@ void httpCleanUpSystem() { ...@@ -117,7 +117,7 @@ void httpCleanUpSystem() {
httpPrint("http service cleanup"); httpPrint("http service cleanup");
httpStopSystem(); httpStopSystem();
#if 0 //#if 0
if (httpServer == NULL) { if (httpServer == NULL) {
return; return;
} }
...@@ -132,6 +132,8 @@ void httpCleanUpSystem() { ...@@ -132,6 +132,8 @@ void httpCleanUpSystem() {
} }
httpCleanUpConnect(httpServer); httpCleanUpConnect(httpServer);
#if 0
httpRemoveAllSessions(httpServer); httpRemoveAllSessions(httpServer);
if (httpServer->pContextPool != NULL) { if (httpServer->pContextPool != NULL) {
......
...@@ -304,9 +304,9 @@ static FORCE_INLINE SCacheDataNode *taosAddToCacheImpl(SCacheObj *pCacheObj, con ...@@ -304,9 +304,9 @@ static FORCE_INLINE SCacheDataNode *taosAddToCacheImpl(SCacheObj *pCacheObj, con
static void doCleanupDataCache(SCacheObj *pCacheObj) { static void doCleanupDataCache(SCacheObj *pCacheObj) {
__cache_wr_lock(pCacheObj); __cache_wr_lock(pCacheObj);
if (taosHashGetSize(pCacheObj->pHashTable) > 0) { //if (taosHashGetSize(pCacheObj->pHashTable) > 0) {
taosHashCleanup(pCacheObj->pHashTable); taosHashCleanup(pCacheObj->pHashTable);
} //}
__cache_unlock(pCacheObj); __cache_unlock(pCacheObj);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册