From 2949b17b69ab7a13f390a2218d193beabe488900 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 17 Jun 2011 13:35:05 +0000 Subject: fixing 1710 --- src/fs/gnunet-service-fs_push.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/fs/gnunet-service-fs_push.c') diff --git a/src/fs/gnunet-service-fs_push.c b/src/fs/gnunet-service-fs_push.c index 339f98616..c3affeff4 100644 --- a/src/fs/gnunet-service-fs_push.c +++ b/src/fs/gnunet-service-fs_push.c @@ -642,7 +642,15 @@ GSF_push_stop_ (struct GSF_ConnectedPeer *peer) peer_tail, pos); if (NULL != pos->th) - GSF_peer_transmit_cancel_ (pos->th); + { + GSF_peer_transmit_cancel_ (pos->th); + pos->th = NULL; + } + if (NULL != pos->msg) + { + GNUNET_free (pos->msg); + pos->msg = NULL; + } GNUNET_free (pos); return; } -- cgit v1.2.3