diff options
author | Schanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de> | 2018-07-23 19:29:44 +0200 |
---|---|---|
committer | Schanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de> | 2018-07-23 19:29:44 +0200 |
commit | 5fb272d662eca0707b1a5c7747ae476f8157d332 (patch) | |
tree | 1020fb8e53604fd69c28b416be3f43b69473ea1b | |
parent | a84e3a97d067bb36d350ee6acb09772fcda37127 (diff) | |
download | gnunet-5fb272d662eca0707b1a5c7747ae476f8157d332.tar.gz gnunet-5fb272d662eca0707b1a5c7747ae476f8157d332.zip |
fix
-rw-r--r-- | src/gns/plugin_rest_gns.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/gns/plugin_rest_gns.c b/src/gns/plugin_rest_gns.c index 2b729db54..e76a5d116 100644 --- a/src/gns/plugin_rest_gns.c +++ b/src/gns/plugin_rest_gns.c | |||
@@ -281,6 +281,15 @@ gnsrecord_to_json (const struct GNUNET_GNSRECORD_Data *rd) | |||
281 | return record_obj; | 281 | return record_obj; |
282 | } | 282 | } |
283 | 283 | ||
284 | |||
285 | static void | ||
286 | do_cleanup (void *cls) | ||
287 | { | ||
288 | struct LookupHandle *handle = cls; | ||
289 | cleanup_handle (handle); | ||
290 | } | ||
291 | |||
292 | |||
284 | /** | 293 | /** |
285 | * Function called with the result of a GNS lookup. | 294 | * Function called with the result of a GNS lookup. |
286 | * | 295 | * |
@@ -325,7 +334,7 @@ process_lookup_result (void *cls, uint32_t rd_count, | |||
325 | resp = GNUNET_REST_create_response (result); | 334 | resp = GNUNET_REST_create_response (result); |
326 | handle->proc (handle->proc_cls, resp, MHD_HTTP_OK); | 335 | handle->proc (handle->proc_cls, resp, MHD_HTTP_OK); |
327 | GNUNET_free (result); | 336 | GNUNET_free (result); |
328 | cleanup_handle (handle); | 337 | GNUNET_SCHEDULER_add_now (&do_cleanup, handle); |
329 | } | 338 | } |
330 | 339 | ||
331 | 340 | ||