From: Christian Grothoff Date: Fri, 17 Jun 2011 13:35:05 +0000 (+0000) Subject: fixing 1710 X-Git-Tag: initial-import-from-subversion-38251~18100 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2949b17b69ab7a13f390a2218d193beabe488900;p=oweals%2Fgnunet.git fixing 1710 --- 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; }