diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-12-05 22:56:30 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-12-05 22:56:30 +0000 |
commit | 130b959e0d1ecc64a4a61f27d6afdb3dd73c13f0 (patch) | |
tree | 13194f0f19b5e7cfb320b217d1dfc1bcff75f30f /src/transport/test_transport_api_bidirectional_connect.c | |
parent | d142f0971f9915018144e874298eac80fa3963c6 (diff) | |
download | gnunet-130b959e0d1ecc64a4a61f27d6afdb3dd73c13f0.tar.gz gnunet-130b959e0d1ecc64a4a61f27d6afdb3dd73c13f0.zip |
-fix leak
Diffstat (limited to 'src/transport/test_transport_api_bidirectional_connect.c')
-rw-r--r-- | src/transport/test_transport_api_bidirectional_connect.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/transport/test_transport_api_bidirectional_connect.c b/src/transport/test_transport_api_bidirectional_connect.c index 7c5c59345..5bc7d091b 100644 --- a/src/transport/test_transport_api_bidirectional_connect.c +++ b/src/transport/test_transport_api_bidirectional_connect.c | |||
@@ -254,20 +254,22 @@ notify_disconnect (void *cls, const struct GNUNET_PeerIdentity *peer) | |||
254 | char *ps = GNUNET_strdup (GNUNET_i2s (&p->id)); | 254 | char *ps = GNUNET_strdup (GNUNET_i2s (&p->id)); |
255 | 255 | ||
256 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | 256 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
257 | "Peer %u (`%4s'): peer (`%s') disconnected from me!\n", p->no, ps, | 257 | "Peer %u (`%4s'): peer (`%s') disconnected from me!\n", |
258 | p->no, ps, | ||
258 | GNUNET_i2s (peer)); | 259 | GNUNET_i2s (peer)); |
260 | GNUNET_free (ps); | ||
259 | 261 | ||
260 | if (GNUNET_SCHEDULER_NO_TASK != send_task) | 262 | if (GNUNET_SCHEDULER_NO_TASK != send_task) |
261 | { | 263 | { |
262 | 264 | GNUNET_SCHEDULER_cancel(send_task); | |
263 | GNUNET_SCHEDULER_cancel(send_task); | 265 | GNUNET_break (0); |
264 | GNUNET_break (0); | 266 | send_task = GNUNET_SCHEDULER_NO_TASK; |
265 | send_task = GNUNET_SCHEDULER_NO_TASK; | ||
266 | } | 267 | } |
267 | 268 | if (NULL != th) | |
268 | if (th != NULL) | 269 | { |
269 | GNUNET_TRANSPORT_notify_transmit_ready_cancel (th); | 270 | GNUNET_TRANSPORT_notify_transmit_ready_cancel (th); |
270 | th = NULL; | 271 | th = NULL; |
272 | } | ||
271 | } | 273 | } |
272 | 274 | ||
273 | 275 | ||