fix/TS-5154

This commit is contained in:
dmchen 2024-07-11 05:45:06 +00:00
parent fef33e91b3
commit c6c323f40e
1 changed files with 4 additions and 1 deletions

View File

@ -1344,7 +1344,10 @@ int32_t taosReadDataFolder(const char *cfgDir, const char **envCmd, const char *
return -1; return -1;
} }
if (taosSetTfsCfg(pCfg) != 0) return -1; if (taosSetTfsCfg(pCfg) != 0) {
cfgCleanup(pCfg);
return -1;
}
dDebugFlag = cfgGetItem(pCfg, "dDebugFlag")->i32; dDebugFlag = cfgGetItem(pCfg, "dDebugFlag")->i32;
cfgCleanup(pCfg); cfgCleanup(pCfg);