diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-05-31 19:11:08 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-05-31 19:11:08 +0000 |
commit | c44d7f35a5cbfc87c564bd60c49b6609f246013b (patch) | |
tree | f998261af395d561e80ab3944bf34b9a71ebec2e /src/transport/gnunet-service-transport_neighbours.c | |
parent | d33085eb77181275ecb77cdf69550e46c919b918 (diff) | |
download | gnunet-c44d7f35a5cbfc87c564bd60c49b6609f246013b.tar.gz gnunet-c44d7f35a5cbfc87c564bd60c49b6609f246013b.zip |
-fix leak
Diffstat (limited to 'src/transport/gnunet-service-transport_neighbours.c')
-rw-r--r-- | src/transport/gnunet-service-transport_neighbours.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c index 47e271387..662e2b569 100644 --- a/src/transport/gnunet-service-transport_neighbours.c +++ b/src/transport/gnunet-service-transport_neighbours.c | |||
@@ -1128,7 +1128,10 @@ transmit_send_continuation (void *cls, | |||
1128 | struct NeighbourMapEntry *n; | 1128 | struct NeighbourMapEntry *n; |
1129 | 1129 | ||
1130 | if (NULL == (n = lookup_neighbour (receiver))) | 1130 | if (NULL == (n = lookup_neighbour (receiver))) |
1131 | { | ||
1132 | GNUNET_free (mq); | ||
1131 | return; /* disconnect or other error while transmitting, can happen */ | 1133 | return; /* disconnect or other error while transmitting, can happen */ |
1134 | } | ||
1132 | if (n->is_active == mq) | 1135 | if (n->is_active == mq) |
1133 | { | 1136 | { |
1134 | /* this is still "our" neighbour, remove us from its queue | 1137 | /* this is still "our" neighbour, remove us from its queue |