aboutsummaryrefslogtreecommitdiff
path: root/src/identity
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2015-04-01 14:05:10 +0000
committerMartin Schanzenbach <mschanzenbach@posteo.de>2015-04-01 14:05:10 +0000
commit969bda0cfd9c5b28c5b217a909a7bdab34ebe516 (patch)
treed71f05489bf5ebc7dc1af8987fd668471d5dd62a /src/identity
parent7f2c9fde223cf7734fec8cdfb913b16579af41a3 (diff)
downloadgnunet-969bda0cfd9c5b28c5b217a909a7bdab34ebe516.tar.gz
gnunet-969bda0cfd9c5b28c5b217a909a7bdab34ebe516.zip
-json decrefs
Diffstat (limited to 'src/identity')
-rw-r--r--src/identity/plugin_rest_identity.c6
1 files changed, 0 insertions, 6 deletions
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,
474 { 474 {
475 if (0 == strcasecmp (egoname, ego_entry->identifier)) 475 if (0 == strcasecmp (egoname, ego_entry->identifier))
476 { 476 {
477 json_decref (egoname_json);
478 GNUNET_REST_jsonapi_object_delete (json_obj); 477 GNUNET_REST_jsonapi_object_delete (json_obj);
479 resp = GNUNET_REST_create_json_response (NULL); 478 resp = GNUNET_REST_create_json_response (NULL);
480 handle->proc (handle->proc_cls, resp, MHD_HTTP_CONFLICT); 479 handle->proc (handle->proc_cls, resp, MHD_HTTP_CONFLICT);
@@ -483,7 +482,6 @@ ego_create_cont (struct RestConnectionDataHandle *con,
483 } 482 }
484 } 483 }
485 GNUNET_asprintf (&handle->name, "%s", egoname); 484 GNUNET_asprintf (&handle->name, "%s", egoname);
486 json_decref (egoname_json);
487 GNUNET_REST_jsonapi_object_delete (json_obj); 485 GNUNET_REST_jsonapi_object_delete (json_obj);
488 handle->op = GNUNET_IDENTITY_create (handle->identity_handle, 486 handle->op = GNUNET_IDENTITY_create (handle->identity_handle,
489 handle->name, 487 handle->name,
@@ -576,10 +574,8 @@ ego_edit_cont (struct RestConnectionDataHandle *con,
576 &edit_finished, 574 &edit_finished,
577 handle); 575 handle);
578 GNUNET_REST_jsonapi_object_delete (json_obj); 576 GNUNET_REST_jsonapi_object_delete (json_obj);
579 json_decref (name_json);
580 return; 577 return;
581 } 578 }
582 json_decref (name_json);
583 } 579 }
584 580
585 subsys_json = GNUNET_REST_jsonapi_resource_read_attr (json_res, GNUNET_REST_JSONAPI_IDENTITY_SUBSYSTEM); 581 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,
596 ego_entry->ego, 592 ego_entry->ego,
597 &edit_finished, 593 &edit_finished,
598 handle); 594 handle);
599 json_decref (subsys_json);
600 return; 595 return;
601 } 596 }
602 json_decref (subsys_json);
603 } 597 }
604 GNUNET_REST_jsonapi_object_delete (json_obj); 598 GNUNET_REST_jsonapi_object_delete (json_obj);
605 GNUNET_SCHEDULER_add_now (&do_error, handle); 599 GNUNET_SCHEDULER_add_now (&do_error, handle);