From: Matthias Wachs Date: Fri, 20 May 2011 14:33:42 +0000 (+0000) Subject: Removing this lines breaks the transport tests on Freebsd X-Git-Tag: initial-import-from-subversion-38251~18441 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8bcc62eb2345488b010b4058a0108a9010998347;p=oweals%2Fgnunet.git Removing this lines breaks the transport tests on Freebsd Failing tests begin with rev 14256 --- diff --git a/src/util/connection.c b/src/util/connection.c index 5dbc9916b..7828dac53 100644 --- a/src/util/connection.c +++ b/src/util/connection.c @@ -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;