Browse Source

Test

etomic
jl777 7 years ago
parent
commit
5770810c60
  1. 4
      crypto777/cJSON.c

4
crypto777/cJSON.c

@ -1149,11 +1149,11 @@ cJSON *cJSON_CreateObject(void)
return item; return item;
} }
void free_json(cJSON *json) void free_json(cJSON *item)
{ {
#ifdef CJSON_GARBAGECOLLECTION #ifdef CJSON_GARBAGECOLLECTION
cJSON_unregister(item); cJSON_unregister(item);
#endif #endif
if ( json != 0 ) if ( json != 0 )
cJSON_Delete(json); cJSON_Delete(item);
} }

Loading…
Cancel
Save