gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r11433 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r11433 - gnunet/src/transport
Date: Wed, 19 May 2010 10:58:01 +0200

Author: wachs
Date: 2010-05-19 10:58:01 +0200 (Wed, 19 May 2010)
New Revision: 11433

Modified:
   gnunet/src/transport/plugin_transport_http.c
Log:


Modified: gnunet/src/transport/plugin_transport_http.c
===================================================================
--- gnunet/src/transport/plugin_transport_http.c        2010-05-19 08:34:31 UTC 
(rev 11432)
+++ gnunet/src/transport/plugin_transport_http.c        2010-05-19 08:58:01 UTC 
(rev 11433)
@@ -405,12 +405,9 @@
 
     /* iter over list */
     cs = plugin->sessions;
-    GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,"Sessions in list %u 
\n",plugin->session_count);
     while (cs!=NULL)
       {
-      GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,"Session: %s \n",cs->ip);
         cs = cs->next;
-
       }
     /* Set closure */
     if (*httpSessionCache == NULL)
@@ -720,6 +717,8 @@
 {
   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");
 
@@ -748,6 +747,17 @@
 
   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;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]