From: Christian Grothoff Date: Wed, 25 Jan 2017 14:50:27 +0000 (+0100) Subject: fix leak X-Git-Tag: taler-0.2.1~306 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=93d202bdabc1aef0352c7054e8933b036c7adef0;p=oweals%2Fgnunet.git fix leak --- diff --git a/src/cadet/gnunet-service-cadet-new_channel.c b/src/cadet/gnunet-service-cadet-new_channel.c index 753634c62..c3d5ef194 100644 --- a/src/cadet/gnunet-service-cadet-new_channel.c +++ b/src/cadet/gnunet-service-cadet-new_channel.c @@ -1339,6 +1339,7 @@ data_sent_cb (void *cls) crm); if (GNUNET_NO == ch->reliable) { + GNUNET_free (crm->data_message); GNUNET_free (crm); ch->pending_messages--; send_ack_to_client (ch, @@ -1361,6 +1362,7 @@ data_sent_cb (void *cls) crm); if (NULL != ch->retry_data_task) GNUNET_SCHEDULER_cancel (ch->retry_data_task); + GNUNET_assert (NULL == crm->qe); ch->retry_data_task = GNUNET_SCHEDULER_add_delayed (crm->retry_delay, &retry_transmission,