diff options
author | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2016-12-14 08:18:14 +0100 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2016-12-14 08:18:14 +0100 |
commit | 8052eb6445f29eec791e7c473a15334a66c91141 (patch) | |
tree | 43807435f1689898de04cb44f0ccbc052b807afd /src/gns/gns_api.c | |
parent | 80bdda1c79efb648cb56bdfb63da0c2c0db3ff45 (diff) | |
download | gnunet-8052eb6445f29eec791e7c473a15334a66c91141.tar.gz gnunet-8052eb6445f29eec791e7c473a15334a66c91141.zip |
-fix gns mq; fix serializer
Diffstat (limited to 'src/gns/gns_api.c')
-rw-r--r-- | src/gns/gns_api.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/gns/gns_api.c b/src/gns/gns_api.c index acb56f2c4..5ad7b4fae 100644 --- a/src/gns/gns_api.c +++ b/src/gns/gns_api.c | |||
@@ -354,11 +354,7 @@ handle_result (void *cls, | |||
354 | return; | 354 | return; |
355 | proc = lr->lookup_proc; | 355 | proc = lr->lookup_proc; |
356 | proc_cls = lr->proc_cls; | 356 | proc_cls = lr->proc_cls; |
357 | GNUNET_CONTAINER_DLL_remove (handle->lookup_head, | 357 | |
358 | handle->lookup_tail, | ||
359 | lr); | ||
360 | GNUNET_free (lr->env); | ||
361 | GNUNET_free (lr); | ||
362 | GNUNET_assert (GNUNET_OK == | 358 | GNUNET_assert (GNUNET_OK == |
363 | GNUNET_GNSRECORD_records_deserialize (mlen, | 359 | GNUNET_GNSRECORD_records_deserialize (mlen, |
364 | (const char*) &lookup_msg[1], | 360 | (const char*) &lookup_msg[1], |
@@ -367,6 +363,12 @@ handle_result (void *cls, | |||
367 | proc (proc_cls, | 363 | proc (proc_cls, |
368 | rd_count, | 364 | rd_count, |
369 | rd); | 365 | rd); |
366 | GNUNET_CONTAINER_DLL_remove (handle->lookup_head, | ||
367 | handle->lookup_tail, | ||
368 | lr); | ||
369 | if (NULL != lr->env) | ||
370 | GNUNET_MQ_discard (lr->env); | ||
371 | GNUNET_free (lr); | ||
370 | } | 372 | } |
371 | 373 | ||
372 | 374 | ||