Fix mem error in readCfg.

This commit is contained in:
xiao-77 2024-12-02 14:11:43 +08:00
parent 0d8d61f7ca
commit 1aa4258aef
1 changed files with 1 additions and 0 deletions

View File

@ -2002,6 +2002,7 @@ int32_t readCfgFile(const char *path, bool isGlobal) {
code = terrno;
goto _exit;
}
buf[fileSize] = 0;
code = cfgDeserialize(array, buf, isGlobal);
if (code != TSDB_CODE_SUCCESS) {
uError("failed to deserialize config from %s since %s", filename, tstrerror(code));