gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r11547 - gnunet/src/transport
Date: Fri, 28 May 2010 13:41:48 +0200

Author: wachs
Date: 2010-05-28 13:41:48 +0200 (Fri, 28 May 2010)
New Revision: 11547

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-28 09:30:53 UTC 
(rev 11546)
+++ gnunet/src/transport/plugin_transport_http.c        2010-05-28 11:41:48 UTC 
(rev 11547)
@@ -666,6 +666,7 @@
     ses->pending_outbound_msg = cur->next;
     GNUNET_free (cur->buf);
     GNUNET_free (cur);
+    cur = NULL;
     return GNUNET_OK;
   }
 
@@ -680,6 +681,7 @@
   cur->next = cur->next->next;
   GNUNET_free (cur->next->buf);
   GNUNET_free (cur->next);
+  cur->next = NULL;
   return GNUNET_OK;
 
 
@@ -1143,7 +1145,8 @@
       while (cur != NULL)
       {
          tmp = cur->next;
-         GNUNET_free (cur->buf);
+         if (NULL != cur->buf)
+           GNUNET_free (cur->buf);
          GNUNET_free (cur);
          cur = tmp;
       }




reply via email to

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