From: Matthias Wachs Date: Tue, 13 Jul 2010 19:56:56 +0000 (+0000) Subject: (no commit message) X-Git-Tag: initial-import-from-subversion-38251~20953 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5156df7d340440694f003a4710f63457af4c7b7e;p=oweals%2Fgnunet.git --- diff --git a/src/transport/plugin_transport_http.c b/src/transport/plugin_transport_http.c index b346ad876..f63a467e9 100644 --- a/src/transport/plugin_transport_http.c +++ b/src/transport/plugin_transport_http.c @@ -40,7 +40,7 @@ #include -#define DEBUG_CURL GNUNET_NO +#define DEBUG_CURL GNUNET_YES #define DEBUG_HTTP GNUNET_NO #define DEBUG_CONNECTIONS GNUNET_YES @@ -407,6 +407,8 @@ static int remove_session (struct HTTP_PeerContext * pc, struct Session * ps, i { struct HTTP_Message * msg; GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,"Connection %X: removing %s session %X with id %u\n", ps, (ps->direction == INBOUND) ? "inbound" : "outbound", ps, ps->session_id); + + GNUNET_free_non_null (ps->addr); GNUNET_SERVER_mst_destroy (ps->msgtok); GNUNET_free(ps->url); @@ -1734,8 +1736,8 @@ http_plugin_disconnect (void *cls, while (ps!=NULL) { - /* Telling transport that session is getting disconnected */ - plugin->env->session_end(plugin, target, ps); + /* Telling transport that session is getting disconnected */ + plugin->env->session_end(plugin, target, ps); if (ps->direction==OUTBOUND) { if (ps->send_endpoint!=NULL)