aboutsummaryrefslogtreecommitdiff
path: root/src/reclaim/reclaim_api.c
diff options
context:
space:
mode:
authorSchanzenbach, Martin <mschanzenbach@posteo.de>2019-06-04 23:59:22 +0200
committerSchanzenbach, Martin <mschanzenbach@posteo.de>2019-06-04 23:59:22 +0200
commit761cdce49f33607b0e8e1ef0c4275bf8d7e82c02 (patch)
treef26c87db6b3f17632c8cd6faab5ac5a98872d91b /src/reclaim/reclaim_api.c
parent1499f09f5b1a059dcbdd14881a94a19dfa7b13b9 (diff)
downloadgnunet-761cdce49f33607b0e8e1ef0c4275bf8d7e82c02.tar.gz
gnunet-761cdce49f33607b0e8e1ef0c4275bf8d7e82c02.zip
fix memory issues
Diffstat (limited to 'src/reclaim/reclaim_api.c')
-rw-r--r--src/reclaim/reclaim_api.c6
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);