From 8c85ee6619a2580c239fe7807368bf8a6a8286fa Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Tue, 29 May 2012 08:09:45 +0000 Subject: [PATCH] - fix for 0002383 --- src/transport/plugin_transport_http.c | 2 -- src/transport/plugin_transport_http_server.c | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) 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) { -- 2.25.1