Lines Matching refs:cJSON_free
47 static void (*cJSON_free)(void *ptr) = free; variable
64 cJSON_free = free; in cJSON_InitHooks()
69 cJSON_free = (hooks->free_fn)?hooks->free_fn:free; in cJSON_InitHooks()
88 if (!(c->type&cJSON_IsReference) && c->valuestring) cJSON_free(c->valuestring); in cJSON_Delete()
89 if (c->string) cJSON_free(c->string); in cJSON_Delete()
90 cJSON_free(c); in cJSON_Delete()
386 for (i=0;i<numentries;i++) if (entries[i]) cJSON_free(entries[i]); in print_array()
387 cJSON_free(entries); in print_array()
398 cJSON_free(entries[i]); in print_array()
400 cJSON_free(entries); in print_array()
464 if (!names) {cJSON_free(entries);return 0;} in print_object()
485 …for (i=0;i<numentries;i++) {if (names[i]) cJSON_free(names[i]);if (entries[i]) cJSON_free(entries[… in print_object()
486 cJSON_free(names);cJSON_free(entries); in print_object()
500 cJSON_free(names[i]);cJSON_free(entries[i]); in print_object()
503 cJSON_free(names);cJSON_free(entries); in print_object()
521 …,const char *string,cJSON *item) {if (!item) return; if (item->string) cJSON_free(item->string);it… in cJSON_AddItemToObject()