Fix mem error in readCfg.
This commit is contained in:
parent
0d8d61f7ca
commit
1aa4258aef
|
@ -2002,6 +2002,7 @@ int32_t readCfgFile(const char *path, bool isGlobal) {
|
||||||
code = terrno;
|
code = terrno;
|
||||||
goto _exit;
|
goto _exit;
|
||||||
}
|
}
|
||||||
|
buf[fileSize] = 0;
|
||||||
code = cfgDeserialize(array, buf, isGlobal);
|
code = cfgDeserialize(array, buf, isGlobal);
|
||||||
if (code != TSDB_CODE_SUCCESS) {
|
if (code != TSDB_CODE_SUCCESS) {
|
||||||
uError("failed to deserialize config from %s since %s", filename, tstrerror(code));
|
uError("failed to deserialize config from %s since %s", filename, tstrerror(code));
|
||||||
|
|
Loading…
Reference in New Issue