fix: memory leak in tconfig.c in client

This commit is contained in:
Shengliang Guan 2022-04-18 20:29:10 +08:00
parent 59008ec626
commit f0ab7dbc96
2 changed files with 1 additions and 5 deletions

View File

@ -71,6 +71,7 @@ void taos_cleanup(void) {
schedulerDestroy();
tscInfo("all local resources released");
taosCleanupCfg();
taosCloseLog();
}

View File

@ -91,11 +91,6 @@ TAOS *shellInit(SShellArguments *_args) {
_args->user = TSDB_DEFAULT_USER;
}
SConfig *pCfg = cfgInit();
if (NULL == pCfg) return NULL;
if (0 != taosAddClientLogCfg(pCfg)) return NULL;
// Connect to the database.
TAOS *con = NULL;
if (_args->auth == NULL) {