diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2011-09-27 11:15:59 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2011-09-27 11:15:59 +0000 |
commit | b9ae190b8cfaa9124e284cc46595fa3b52b16696 (patch) | |
tree | f1141b9692901bbfe44411045a63e5d7e4e8c0a5 /src/transport | |
parent | 31cca448e4178022c29e23e57aaeb4145fee2a4f (diff) | |
download | gnunet-b9ae190b8cfaa9124e284cc46595fa3b52b16696.tar.gz gnunet-b9ae190b8cfaa9124e284cc46595fa3b52b16696.zip |
mem leak
Diffstat (limited to 'src/transport')
-rw-r--r-- | src/transport/plugin_transport_http_client.c | 2 | ||||
-rw-r--r-- | src/transport/plugin_transport_http_new.c | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/transport/plugin_transport_http_client.c b/src/transport/plugin_transport_http_client.c index bc2051eef..89acb4641 100644 --- a/src/transport/plugin_transport_http_client.c +++ b/src/transport/plugin_transport_http_client.c | |||
@@ -205,8 +205,6 @@ client_run (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
205 | #endif | 205 | #endif |
206 | client_disconnect(s); | 206 | client_disconnect(s); |
207 | //GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, plugin->name,"Notifying about ended session to peer `%s' `%s'\n", GNUNET_i2s (&s->target), http_plugin_address_to_string (plugin, s->addr, s->addrlen)); | 207 | //GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, plugin->name,"Notifying about ended session to peer `%s' `%s'\n", GNUNET_i2s (&s->target), http_plugin_address_to_string (plugin, s->addr, s->addrlen)); |
208 | if (s->msg_tk != NULL) | ||
209 | GNUNET_SERVER_mst_destroy (s->msg_tk); | ||
210 | notify_session_end (plugin, &s->target, s); | 208 | notify_session_end (plugin, &s->target, s); |
211 | } | 209 | } |
212 | } | 210 | } |
diff --git a/src/transport/plugin_transport_http_new.c b/src/transport/plugin_transport_http_new.c index 66f79b3c4..ca55d1d1d 100644 --- a/src/transport/plugin_transport_http_new.c +++ b/src/transport/plugin_transport_http_new.c | |||
@@ -398,6 +398,11 @@ lookup_session (struct Plugin *plugin, const struct GNUNET_PeerIdentity *target, | |||
398 | void | 398 | void |
399 | delete_session (struct Session *s) | 399 | delete_session (struct Session *s) |
400 | { | 400 | { |
401 | if (s->msg_tk != NULL) | ||
402 | { | ||
403 | GNUNET_SERVER_mst_destroy (s->msg_tk); | ||
404 | s->msg_tk = NULL; | ||
405 | } | ||
401 | GNUNET_free (s->addr); | 406 | GNUNET_free (s->addr); |
402 | GNUNET_free_non_null(s->server_recv); | 407 | GNUNET_free_non_null(s->server_recv); |
403 | GNUNET_free_non_null(s->server_send); | 408 | GNUNET_free_non_null(s->server_send); |