fix leak
authorChristian Grothoff <christian@grothoff.org>
Wed, 25 Jan 2017 14:50:27 +0000 (15:50 +0100)
committerChristian Grothoff <christian@grothoff.org>
Wed, 25 Jan 2017 14:50:27 +0000 (15:50 +0100)
src/cadet/gnunet-service-cadet-new_channel.c

index 753634c62db4cf570e1d8e09cc4557863ebcf541..c3d5ef1947eb74b6db61b19338adf14c42ce5b5d 100644 (file)
@@ -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,