Removing this lines breaks the transport tests on Freebsd
authorMatthias Wachs <wachs@net.in.tum.de>
Fri, 20 May 2011 14:33:42 +0000 (14:33 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Fri, 20 May 2011 14:33:42 +0000 (14:33 +0000)
Failing tests begin with rev 14256

src/util/connection.c

index 5dbc9916b85da96d91a52ea5d7d4bde39d547760..7828dac531264dba3bbba6e26806f562654d29ee 100644 (file)
@@ -966,8 +966,10 @@ GNUNET_CONNECTION_create_from_connect_to_unixpath (const struct
     {
       /* Just return; we expect everything to work eventually so don't fail HARD */
       GNUNET_break (GNUNET_OK == GNUNET_NETWORK_socket_close (ret->sock));
-      ret->sock = NULL;
-      return ret;
+      GNUNET_free (ret->addr);
+      GNUNET_free (ret->write_buffer);
+      GNUNET_free (ret);
+      return NULL;
     }
   connect_success_continuation (ret);
   return ret;