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

index c3d5ef1947eb74b6db61b19338adf14c42ce5b5d..b5ddce6dbe1e33296ca4f64e97fa5b722149dc91 100644 (file)
@@ -1169,6 +1169,7 @@ GCCH_handle_channel_plaintext_data (struct CadetChannel *ch,
       GNUNET_CONTAINER_DLL_remove (ccc->head_recv,
                                    ccc->tail_recv,
                                    com);
+      GNUNET_MQ_discard (com->env);
       GNUNET_free (com);
       return;
     }