fix
authorChristian Grothoff <christian@grothoff.org>
Tue, 21 Dec 2010 14:22:38 +0000 (14:22 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 21 Dec 2010 14:22:38 +0000 (14:22 +0000)
src/transport/gnunet-service-transport.c

index 293e9c63790d4a55adbb19c1d22a3c97f6691508..e9a30145f5807fe2811197dfcc003ad1344c1e25 100644 (file)
@@ -4899,7 +4899,6 @@ handle_start (void *cls,
          GNUNET_break(0);
       }
       cim = GNUNET_malloc (size);
-
       cim->header.size = htons (size);
       cim->header.type = htons (GNUNET_MESSAGE_TYPE_TRANSPORT_CONNECT);
       cim->ats_count = htonl(ats_count);
@@ -4919,9 +4918,9 @@ handle_start (void *cls,
                  }
            n = n->next;
       }
+      GNUNET_free (cim);
   }
   GNUNET_SERVER_receive_done (client, GNUNET_OK);
-  GNUNET_free(cim);
 }