Add leak_detector_c

This commit is contained in:
2025-04-24 10:01:18 +08:00
parent 1c28d55681
commit 6a4fb872f7
13 changed files with 337 additions and 9 deletions

View File

@@ -192,6 +192,7 @@ int parse_json_to_struct(const char *json_string, Response *response)
cJSON *root = cJSON_Parse(json_string);
if (!root) {
fprintf(stderr, "Error parsing JSON: %s\n", cJSON_GetErrorPtr());
printf("%s\n", json_string);
return -1;
}
// 解析字段