diff --git a/source/client/src/clientMain.c b/source/client/src/clientMain.c index d0bd1ec650..61b7afc6b1 100644 --- a/source/client/src/clientMain.c +++ b/source/client/src/clientMain.c @@ -83,12 +83,13 @@ void taos_cleanup(void) { taosConvDestroy(); - tscInfo("all local resources released"); - taosCleanupCfg(); - taosCloseLog(); tmqMgmtClose(); taosHashCleanup(appInfo.pInstMap); taosHashCleanup(appInfo.pInstMapByClusterId); + + tscInfo("all local resources released"); + taosCleanupCfg(); + taosCloseLog(); } static setConfRet taos_set_config_imp(const char *config) {