diff options
author | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2019-06-04 23:59:22 +0200 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2019-06-04 23:59:22 +0200 |
commit | 761cdce49f33607b0e8e1ef0c4275bf8d7e82c02 (patch) | |
tree | f26c87db6b3f17632c8cd6faab5ac5a98872d91b /src/reclaim/reclaim_api.c | |
parent | 1499f09f5b1a059dcbdd14881a94a19dfa7b13b9 (diff) | |
download | gnunet-761cdce49f33607b0e8e1ef0c4275bf8d7e82c02.tar.gz gnunet-761cdce49f33607b0e8e1ef0c4275bf8d7e82c02.zip |
fix memory issues
Diffstat (limited to 'src/reclaim/reclaim_api.c')
-rw-r--r-- | src/reclaim/reclaim_api.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/reclaim/reclaim_api.c b/src/reclaim/reclaim_api.c index 5a9b9d4a9..b0bedfac5 100644 --- a/src/reclaim/reclaim_api.c +++ b/src/reclaim/reclaim_api.c | |||
@@ -505,12 +505,10 @@ handle_consume_ticket_result (void *cls, | |||
505 | op->ar_cb (op->cls, &msg->identity, le->claim); | 505 | op->ar_cb (op->cls, &msg->identity, le->claim); |
506 | GNUNET_RECLAIM_ATTRIBUTE_list_destroy (attrs); | 506 | GNUNET_RECLAIM_ATTRIBUTE_list_destroy (attrs); |
507 | } | 507 | } |
508 | } | ||
509 | if (NULL != op) { | ||
510 | op->ar_cb (op->cls, NULL, NULL); | 508 | op->ar_cb (op->cls, NULL, NULL); |
511 | GNUNET_CONTAINER_DLL_remove (h->op_head, h->op_tail, op); | ||
512 | free_op (op); | ||
513 | } | 509 | } |
510 | GNUNET_CONTAINER_DLL_remove (h->op_head, h->op_tail, op); | ||
511 | free_op (op); | ||
514 | return; | 512 | return; |
515 | } | 513 | } |
516 | GNUNET_assert (0); | 514 | GNUNET_assert (0); |