diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2015-09-15 09:05:18 +0000 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2015-09-15 09:05:18 +0000 |
commit | 120fbd80a09ff7b4b934572c5ee295bf75b7046b (patch) | |
tree | 6f13a8a88d255c1bfb5e5d01b12f7c475bd8e57f /src/namestore/plugin_rest_namestore.c | |
parent | 171cfeb1b32e21d12a1dbcbc5a9099bab37fab7e (diff) | |
download | gnunet-120fbd80a09ff7b4b934572c5ee295bf75b7046b.tar.gz gnunet-120fbd80a09ff7b4b934572c5ee295bf75b7046b.zip |
- fixes
Diffstat (limited to 'src/namestore/plugin_rest_namestore.c')
-rw-r--r-- | src/namestore/plugin_rest_namestore.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/namestore/plugin_rest_namestore.c b/src/namestore/plugin_rest_namestore.c index 5ece83064..6ae3e7967 100644 --- a/src/namestore/plugin_rest_namestore.c +++ b/src/namestore/plugin_rest_namestore.c | |||
@@ -234,6 +234,8 @@ cleanup_handle (struct RequestHandle *handle) | |||
234 | int i; | 234 | int i; |
235 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 235 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
236 | "Cleaning up\n"); | 236 | "Cleaning up\n"); |
237 | if (NULL != handle->resp_object) | ||
238 | GNUNET_REST_jsonapi_object_delete (handle->resp_object); | ||
237 | if (NULL != handle->name) | 239 | if (NULL != handle->name) |
238 | GNUNET_free (handle->name); | 240 | GNUNET_free (handle->name); |
239 | if (NULL != handle->timeout_task) | 241 | if (NULL != handle->timeout_task) |
@@ -384,7 +386,6 @@ namestore_list_response (void *cls, | |||
384 | GNUNET_SCHEDULER_add_now (&do_error, handle); | 386 | GNUNET_SCHEDULER_add_now (&do_error, handle); |
385 | return; | 387 | return; |
386 | } | 388 | } |
387 | GNUNET_REST_jsonapi_object_delete (handle->resp_object); | ||
388 | resp = GNUNET_REST_create_json_response (result); | 389 | resp = GNUNET_REST_create_json_response (result); |
389 | handle->proc (handle->proc_cls, resp, MHD_HTTP_OK); | 390 | handle->proc (handle->proc_cls, resp, MHD_HTTP_OK); |
390 | GNUNET_free (result); | 391 | GNUNET_free (result); |