Delete a cJSON structure. */
| 94 | |
| 95 | /* Delete a cJSON structure. */ |
| 96 | ESL_DECLARE(void)cJSON_Delete(cJSON *c) |
| 97 | { |
| 98 | cJSON *next; |
| 99 | while (c) |
| 100 | { |
| 101 | next=c->next; |
| 102 | if (!(c->type&cJSON_IsReference) && c->child) cJSON_Delete(c->child); |
| 103 | if (!(c->type&cJSON_IsReference) && c->valuestring) cJSON_free(c->valuestring); |
| 104 | if (c->string) cJSON_free(c->string); |
| 105 | cJSON_free(c); |
| 106 | c=next; |
| 107 | } |
| 108 | } |
| 109 | |
| 110 | /* Parse the input text to generate a number, and populate the result into item. */ |
| 111 | static const char *parse_number(cJSON *item,const char *num) |
no outgoing calls
no test coverage detected