diff options
author | Bart Polot <bart@net.in.tum.de> | 2013-08-13 17:46:20 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2013-08-13 17:46:20 +0000 |
commit | 2af1b53e3b335400cf33ace9c91ad15be203f97c (patch) | |
tree | 8f5c608219008dc1dd96a8d1b4d4a0a7b44e27ed | |
parent | 41d573de1a9bd510a15ec971762c0d7dc77f2901 (diff) | |
download | gnunet-2af1b53e3b335400cf33ace9c91ad15be203f97c.tar.gz gnunet-2af1b53e3b335400cf33ace9c91ad15be203f97c.zip |
- fix memleak
-rw-r--r-- | src/mesh/gnunet-service-mesh-enc.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mesh/gnunet-service-mesh-enc.c b/src/mesh/gnunet-service-mesh-enc.c index 7c6f8725c..6af1c2bb7 100644 --- a/src/mesh/gnunet-service-mesh-enc.c +++ b/src/mesh/gnunet-service-mesh-enc.c | |||
@@ -3959,11 +3959,8 @@ channel_destroy (struct MeshChannel *ch) | |||
3959 | } | 3959 | } |
3960 | } | 3960 | } |
3961 | 3961 | ||
3962 | if (GNUNET_YES == ch->reliable) | 3962 | channel_rel_free_all (ch->fwd_rel); |
3963 | { | 3963 | channel_rel_free_all (ch->bck_rel); |
3964 | channel_rel_free_all (ch->fwd_rel); | ||
3965 | channel_rel_free_all (ch->bck_rel); | ||
3966 | } | ||
3967 | 3964 | ||
3968 | GNUNET_CONTAINER_DLL_remove (ch->t->channel_head, ch->t->channel_tail, ch); | 3965 | GNUNET_CONTAINER_DLL_remove (ch->t->channel_head, ch->t->channel_tail, ch); |
3969 | GNUNET_STATISTICS_update (stats, "# channels", -1, GNUNET_NO); | 3966 | GNUNET_STATISTICS_update (stats, "# channels", -1, GNUNET_NO); |