projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6a1710f
)
(no commit message)
author
Matthias Wachs
<wachs@net.in.tum.de>
Wed, 19 May 2010 08:58:01 +0000
(08:58 +0000)
committer
Matthias Wachs
<wachs@net.in.tum.de>
Wed, 19 May 2010 08:58:01 +0000
(08:58 +0000)
src/transport/plugin_transport_http.c
patch
|
blob
|
history
diff --git
a/src/transport/plugin_transport_http.c
b/src/transport/plugin_transport_http.c
index 90dcdf5c7cef3e17501618d1a6daf0d6c4a99a9f..ef8acdad04cc5e890e1018e13598cc6a66341f59 100644
(file)
--- a/
src/transport/plugin_transport_http.c
+++ b/
src/transport/plugin_transport_http.c
@@
-405,12
+405,9
@@
accessHandlerCallback (void *cls,
/* iter over list */
cs = plugin->sessions;
/* iter over list */
cs = plugin->sessions;
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,"Sessions in list %u \n",plugin->session_count);
while (cs!=NULL)
{
while (cs!=NULL)
{
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,"Session: %s \n",cs->ip);
cs = cs->next;
cs = cs->next;
-
}
/* Set closure */
if (*httpSessionCache == NULL)
}
/* Set closure */
if (*httpSessionCache == NULL)
@@
-720,6
+717,8
@@
libgnunet_plugin_transport_http_done (void *cls)
{
struct GNUNET_TRANSPORT_PluginFunctions *api = cls;
struct Plugin *plugin = api->cls;
{
struct GNUNET_TRANSPORT_PluginFunctions *api = cls;
struct Plugin *plugin = api->cls;
+ struct Session * cs;
+ struct Session * cs_next;
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,"Unloading http plugin...\n");
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,"Unloading http plugin...\n");
@@
-748,6
+747,17
@@
libgnunet_plugin_transport_http_done (void *cls)
curl_multi_cleanup(multi_handle);
curl_multi_cleanup(multi_handle);
+ /* free all sessions */
+ cs = plugin->sessions;
+ while ( NULL != cs)
+ {
+ cs_next = cs->next;
+ GNUNET_free (cs->ip);
+ GNUNET_free (cs);
+ plugin->session_count--;
+ cs = cs_next;
+ }
+
GNUNET_free (plugin);
GNUNET_free (api);
return NULL;
GNUNET_free (plugin);
GNUNET_free (api);
return NULL;