Fix cJson mem error.
This commit is contained in:
parent
4f64bae0de
commit
1624bbdc14
|
@ -2848,6 +2848,7 @@ _exit:
|
||||||
uError("failed to persist global config at line:%d, since %s", lino, tstrerror(code));
|
uError("failed to persist global config at line:%d, since %s", lino, tstrerror(code));
|
||||||
}
|
}
|
||||||
(void)taosCloseFile(&pConfigFile);
|
(void)taosCloseFile(&pConfigFile);
|
||||||
|
taosMemoryFree(serialized);
|
||||||
return code;
|
return code;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2887,6 +2888,7 @@ _exit:
|
||||||
uError("failed to persist local config at line:%d, since %s", lino, tstrerror(code));
|
uError("failed to persist local config at line:%d, since %s", lino, tstrerror(code));
|
||||||
}
|
}
|
||||||
(void)taosCloseFile(&pConfigFile);
|
(void)taosCloseFile(&pConfigFile);
|
||||||
|
taosMemoryFree(serialized);
|
||||||
return code;
|
return code;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue