From 969bda0cfd9c5b28c5b217a909a7bdab34ebe516 Mon Sep 17 00:00:00 2001 From: Martin Schanzenbach Date: Wed, 1 Apr 2015 14:05:10 +0000 Subject: -json decrefs --- src/identity/plugin_rest_identity.c | 6 ------ src/namestore/plugin_rest_namestore.c | 1 - 2 files changed, 7 deletions(-) (limited to 'src') diff --git a/src/identity/plugin_rest_identity.c b/src/identity/plugin_rest_identity.c index 1aecefae9..b9aa8db00 100644 --- a/src/identity/plugin_rest_identity.c +++ b/src/identity/plugin_rest_identity.c @@ -474,7 +474,6 @@ ego_create_cont (struct RestConnectionDataHandle *con, { if (0 == strcasecmp (egoname, ego_entry->identifier)) { - json_decref (egoname_json); GNUNET_REST_jsonapi_object_delete (json_obj); resp = GNUNET_REST_create_json_response (NULL); handle->proc (handle->proc_cls, resp, MHD_HTTP_CONFLICT); @@ -483,7 +482,6 @@ ego_create_cont (struct RestConnectionDataHandle *con, } } GNUNET_asprintf (&handle->name, "%s", egoname); - json_decref (egoname_json); GNUNET_REST_jsonapi_object_delete (json_obj); handle->op = GNUNET_IDENTITY_create (handle->identity_handle, handle->name, @@ -576,10 +574,8 @@ ego_edit_cont (struct RestConnectionDataHandle *con, &edit_finished, handle); GNUNET_REST_jsonapi_object_delete (json_obj); - json_decref (name_json); return; } - json_decref (name_json); } subsys_json = GNUNET_REST_jsonapi_resource_read_attr (json_res, GNUNET_REST_JSONAPI_IDENTITY_SUBSYSTEM); @@ -596,10 +592,8 @@ ego_edit_cont (struct RestConnectionDataHandle *con, ego_entry->ego, &edit_finished, handle); - json_decref (subsys_json); return; } - json_decref (subsys_json); } GNUNET_REST_jsonapi_object_delete (json_obj); GNUNET_SCHEDULER_add_now (&do_error, handle); diff --git a/src/namestore/plugin_rest_namestore.c b/src/namestore/plugin_rest_namestore.c index 365e10046..a5287b158 100644 --- a/src/namestore/plugin_rest_namestore.c +++ b/src/namestore/plugin_rest_namestore.c @@ -751,7 +751,6 @@ namestore_create_cont (struct RestConnectionDataHandle *con, if (GNUNET_SYSERR == json_to_gnsrecord (records_json, &handle->rd, &handle->rd_count)) { GNUNET_REST_jsonapi_object_delete (json_obj); - json_decref (records_json); GNUNET_SCHEDULER_add_now (&do_error, handle); return; } -- cgit v1.2.3