[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r35491 - in gnunet/src: identity namestore
From: |
gnunet |
Subject: |
[GNUnet-SVN] r35491 - in gnunet/src: identity namestore |
Date: |
Wed, 1 Apr 2015 16:05:11 +0200 |
Author: schanzen
Date: 2015-04-01 16:05:10 +0200 (Wed, 01 Apr 2015)
New Revision: 35491
Modified:
gnunet/src/identity/plugin_rest_identity.c
gnunet/src/namestore/plugin_rest_namestore.c
Log:
-json decrefs
Modified: gnunet/src/identity/plugin_rest_identity.c
===================================================================
--- gnunet/src/identity/plugin_rest_identity.c 2015-04-01 14:02:35 UTC (rev
35490)
+++ gnunet/src/identity/plugin_rest_identity.c 2015-04-01 14:05:10 UTC (rev
35491)
@@ -474,7 +474,6 @@
{
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 @@
}
}
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 @@
&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_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);
Modified: gnunet/src/namestore/plugin_rest_namestore.c
===================================================================
--- gnunet/src/namestore/plugin_rest_namestore.c 2015-04-01 14:02:35 UTC
(rev 35490)
+++ gnunet/src/namestore/plugin_rest_namestore.c 2015-04-01 14:05:10 UTC
(rev 35491)
@@ -751,7 +751,6 @@
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;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r35491 - in gnunet/src: identity namestore,
gnunet <=