diff options
Diffstat (limited to 'src/cadet/cadet_api_new.c')
-rw-r--r-- | src/cadet/cadet_api_new.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cadet/cadet_api_new.c b/src/cadet/cadet_api_new.c index 8d778e10e..673764813 100644 --- a/src/cadet/cadet_api_new.c +++ b/src/cadet/cadet_api_new.c | |||
@@ -346,6 +346,8 @@ destroy_channel (struct GNUNET_CADET_Channel *ch) | |||
346 | if (NULL != ch->disconnects) | 346 | if (NULL != ch->disconnects) |
347 | ch->disconnects (ch->ctx, | 347 | ch->disconnects (ch->ctx, |
348 | ch); | 348 | ch); |
349 | if (NULL != ch->pending_env) | ||
350 | GNUNET_MQ_discard (ch->pending_env); | ||
349 | GNUNET_MQ_destroy (ch->mq); | 351 | GNUNET_MQ_destroy (ch->mq); |
350 | GNUNET_free (ch); | 352 | GNUNET_free (ch); |
351 | } | 353 | } |