我正在使用cJSON库,并且具有以下功能:
void printJsonObject(cJSON *item) { char *json_string = cJSON_Print(item); printf("%s\n", json_string); }
此功能会泄漏内存吗?
c json cjson
c ×1
cjson ×1
json ×1