From: Matthias Wachs Date: Tue, 29 May 2012 08:09:45 +0000 (+0000) Subject: - fix for 0002383 X-Git-Tag: initial-import-from-subversion-38251~13370 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8c85ee6619a2580c239fe7807368bf8a6a8286fa;p=oweals%2Fgnunet.git - fix for 0002383 --- diff --git a/src/transport/plugin_transport_http.c b/src/transport/plugin_transport_http.c index d55cdb76b..2bc82d8f0 100644 --- a/src/transport/plugin_transport_http.c +++ b/src/transport/plugin_transport_http.c @@ -601,8 +601,6 @@ delete_session (struct Session *s) s->msg_tk = NULL; } GNUNET_free (s->addr); - GNUNET_free_non_null (s->server_recv); - GNUNET_free_non_null (s->server_send); GNUNET_free (s); } diff --git a/src/transport/plugin_transport_http_server.c b/src/transport/plugin_transport_http_server.c index fce6bd1a3..d8383b0a9 100644 --- a/src/transport/plugin_transport_http_server.c +++ b/src/transport/plugin_transport_http_server.c @@ -769,9 +769,8 @@ server_disconnect_cb (void *cls, struct MHD_Connection *connection, "Server: %X peer `%s' GET on address `%s' disconnected\n", s->server_send, GNUNET_i2s (&s->target), http_plugin_address_to_string (NULL, s->addr, s->addrlen)); - + GNUNET_free (s->server_send); s->server_send = NULL; - if (s->server_recv != NULL) { tc = s->server_recv; @@ -788,6 +787,7 @@ server_disconnect_cb (void *cls, struct MHD_Connection *connection, "Server: %X peer `%s' PUT on address `%s' disconnected\n", s->server_recv, GNUNET_i2s (&s->target), http_plugin_address_to_string (NULL, s->addr, s->addrlen)); + GNUNET_free (s->server_recv); s->server_recv = NULL; if (s->server_send != NULL) {