fix issue

This commit is contained in:
Hongze Cheng 2024-07-19 13:02:34 +08:00
parent d2d60990ab
commit acfced4b47
1 changed files with 3 additions and 1 deletions

View File

@ -154,7 +154,9 @@ int32_t save_fs(const TFileSetArray *arr, const char *fname) {
int32_t lino = 0;
cJSON *json = cJSON_CreateObject();
TSDB_CHECK_CODE(code = TSDB_CODE_OUT_OF_MEMORY, lino, _exit);
if (json == NULL) {
TSDB_CHECK_CODE(code = TSDB_CODE_OUT_OF_MEMORY, lino, _exit);
}
// fmtv
if (cJSON_AddNumberToObject(json, "fmtv", 1) == NULL) {