char *json_format = cJSON_PrintUnformatted(itemJSON);
- int pSize = cJSON_GetArraySize(dataJSON);
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP,"文件数据:%s\r\n",json_format);
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP,"文件数据:%s\r\n",json_format);
+ cJSON_Delete(itemJSON);
cJSON_Delete(dataJSON);
+ cJSON_Delete(data_arryJSON);
file_index++;
return json_format;
char *json_format = cJSON_PrintUnformatted(itemJSON);
- int pSize = cJSON_GetArraySize(dataJSON);
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP,"文件数据:%s\r\n",json_format);
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP,"文件数据:%s\r\n",json_format);
+ cJSON_Delete(itemJSON);
cJSON_Delete(dataJSON);
+ cJSON_Delete(data_arryJSON);
file_index++;
return json_format;
char *json_format = cJSON_PrintUnformatted(itemJSON);
- int pSize = cJSON_GetArraySize(dataJSON);
- WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP,"文件数据:%s\r\n",json_format);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP,"文件数据:%s\r\n",json_format);
+ cJSON_Delete(itemJSON);
cJSON_Delete(dataJSON);
+ cJSON_Delete(data_arryJSON);
file_index++;
return json_format;
{
WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP,"opendir fail\r\n");
}
+ cJSON_Delete(dataJSON);
+ cJSON_Delete(data_arryJSON);
return NULL;
}