-fix leak
authorChristian Grothoff <christian@grothoff.org>
Thu, 31 May 2012 19:11:08 +0000 (19:11 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 31 May 2012 19:11:08 +0000 (19:11 +0000)
src/transport/gnunet-service-transport_neighbours.c

index 47e2713870609e97b384ba20ac990aae32df1f7f..662e2b569e373c32b68347799c5cdcc21d901a08 100644 (file)
@@ -1128,7 +1128,10 @@ transmit_send_continuation (void *cls,
   struct NeighbourMapEntry *n;
 
   if (NULL == (n = lookup_neighbour (receiver)))
+  {
+    GNUNET_free (mq);
     return; /* disconnect or other error while transmitting, can happen */
+  }
   if (n->is_active == mq)
   {
     /* this is still "our" neighbour, remove us from its queue