fixing 1710
authorChristian Grothoff <christian@grothoff.org>
Fri, 17 Jun 2011 13:35:05 +0000 (13:35 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 17 Jun 2011 13:35:05 +0000 (13:35 +0000)
src/fs/gnunet-service-fs_push.c

index 339f98616e598336089d6fa437ef6e0ae74d0a0d..c3affeff4b3f68730f36778b720f6ceab392a99f 100644 (file)
@@ -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;
        }