diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2014-01-14 15:21:04 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2014-01-14 15:21:04 +0000 |
commit | 56e49b44a00454606f055cfdb362d976547bf64d (patch) | |
tree | 1d924665aa92d5ce1ea6cfa6350c761a81b9a969 /src/transport/plugin_transport_http_server.c | |
parent | 3d20da8230a5383c2389cb274856560412598119 (diff) | |
download | gnunet-56e49b44a00454606f055cfdb362d976547bf64d.tar.gz gnunet-56e49b44a00454606f055cfdb362d976547bf64d.zip |
fixing memory leaks
Diffstat (limited to 'src/transport/plugin_transport_http_server.c')
-rw-r--r-- | src/transport/plugin_transport_http_server.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/transport/plugin_transport_http_server.c b/src/transport/plugin_transport_http_server.c index bdc1074ed..53ee27005 100644 --- a/src/transport/plugin_transport_http_server.c +++ b/src/transport/plugin_transport_http_server.c | |||
@@ -1144,6 +1144,7 @@ server_lookup_connection (struct HTTP_Server_Plugin *plugin, | |||
1144 | else | 1144 | else |
1145 | { | 1145 | { |
1146 | /* create new session */ | 1146 | /* create new session */ |
1147 | addr = NULL; | ||
1147 | switch (conn_info->client_addr->sa_family) | 1148 | switch (conn_info->client_addr->sa_family) |
1148 | { | 1149 | { |
1149 | case (AF_INET): | 1150 | case (AF_INET): |
@@ -1185,6 +1186,7 @@ server_lookup_connection (struct HTTP_Server_Plugin *plugin, | |||
1185 | http_common_plugin_address_to_string (NULL, | 1186 | http_common_plugin_address_to_string (NULL, |
1186 | plugin->protocol, | 1187 | plugin->protocol, |
1187 | addr, addr_len)); | 1188 | addr, addr_len)); |
1189 | GNUNET_free_non_null (addr); | ||
1188 | } | 1190 | } |
1189 | sc = GNUNET_new (struct ServerConnection); | 1191 | sc = GNUNET_new (struct ServerConnection); |
1190 | if (conn_info->client_addr->sa_family == AF_INET) | 1192 | if (conn_info->client_addr->sa_family == AF_INET) |