diff options
-rw-r--r-- | src/transport/test_transport_api.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/transport/test_transport_api.c b/src/transport/test_transport_api.c index 1058f2b6b..9ef5fc968 100644 --- a/src/transport/test_transport_api.c +++ b/src/transport/test_transport_api.c | |||
@@ -157,6 +157,7 @@ notify_receive (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
157 | "Peer %u (`%4s') received message of type %d and size %u size from peer %u (`%4s')!\n", | 157 | "Peer %u (`%4s') received message of type %d and size %u size from peer %u (`%4s')!\n", |
158 | p->no, ps, ntohs (message->type), ntohs (message->size), t->no, | 158 | p->no, ps, ntohs (message->type), ntohs (message->size), t->no, |
159 | GNUNET_i2s (&t->id)); | 159 | GNUNET_i2s (&t->id)); |
160 | GNUNET_free (ps); | ||
160 | 161 | ||
161 | if ((MTYPE == ntohs (message->type)) && | 162 | if ((MTYPE == ntohs (message->type)) && |
162 | (sizeof (struct GNUNET_MessageHeader) == ntohs (message->size))) | 163 | (sizeof (struct GNUNET_MessageHeader) == ntohs (message->size))) |
@@ -266,6 +267,8 @@ notify_disconnect (void *cls, const struct GNUNET_PeerIdentity *peer) | |||
266 | "Peer %u (`%4s'): peer (`%s') disconnected from me!\n", p->no, ps, | 267 | "Peer %u (`%4s'): peer (`%s') disconnected from me!\n", p->no, ps, |
267 | GNUNET_i2s (peer)); | 268 | GNUNET_i2s (peer)); |
268 | 269 | ||
270 | GNUNET_free (ps); | ||
271 | |||
269 | if (th != NULL) | 272 | if (th != NULL) |
270 | GNUNET_TRANSPORT_notify_transmit_ready_cancel (th); | 273 | GNUNET_TRANSPORT_notify_transmit_ready_cancel (th); |
271 | th = NULL; | 274 | th = NULL; |
@@ -304,6 +307,7 @@ start_cb (struct PeerContext *p, void *cls) | |||
304 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 307 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
305 | "Test tries to connect peer %u (`%s') -> peer %u (`%s')\n", | 308 | "Test tries to connect peer %u (`%s') -> peer %u (`%s')\n", |
306 | p1->no, sender_c, p2->no, GNUNET_i2s (&p2->id)); | 309 | p1->no, sender_c, p2->no, GNUNET_i2s (&p2->id)); |
310 | GNUNET_free (sender_c); | ||
307 | 311 | ||
308 | cc = GNUNET_TRANSPORT_TESTING_connect_peers (tth, p1, p2, &testing_connect_cb, | 312 | cc = GNUNET_TRANSPORT_TESTING_connect_peers (tth, p1, p2, &testing_connect_cb, |
309 | NULL); | 313 | NULL); |