gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r19483 - gnunet/src/transport
Date: Fri, 27 Jan 2012 14:21:36 +0100

Author: wachs
Date: 2012-01-27 14:21:36 +0100 (Fri, 27 Jan 2012)
New Revision: 19483

Modified:
   gnunet/src/transport/test_transport_api.c
Log:
fix memory leaks


Modified: gnunet/src/transport/test_transport_api.c
===================================================================
--- gnunet/src/transport/test_transport_api.c   2012-01-27 12:52:27 UTC (rev 
19482)
+++ gnunet/src/transport/test_transport_api.c   2012-01-27 13:21:36 UTC (rev 
19483)
@@ -157,6 +157,7 @@
               "Peer %u (`%4s') received message of type %d and size %u size 
from peer %u (`%4s')!\n",
               p->no, ps, ntohs (message->type), ntohs (message->size), t->no,
               GNUNET_i2s (&t->id));
+  GNUNET_free (ps);
 
   if ((MTYPE == ntohs (message->type)) &&
       (sizeof (struct GNUNET_MessageHeader) == ntohs (message->size)))
@@ -266,6 +267,8 @@
               "Peer %u (`%4s'): peer (`%s') disconnected from me!\n", p->no, 
ps,
               GNUNET_i2s (peer));
 
+  GNUNET_free (ps);
+
   if (th != NULL)
     GNUNET_TRANSPORT_notify_transmit_ready_cancel (th);
   th = NULL;
@@ -304,6 +307,7 @@
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "Test tries to connect peer %u (`%s') -> peer %u (`%s')\n",
               p1->no, sender_c, p2->no, GNUNET_i2s (&p2->id));
+  GNUNET_free (sender_c);
 
   cc = GNUNET_TRANSPORT_TESTING_connect_peers (tth, p1, p2, 
&testing_connect_cb,
                                                NULL);




reply via email to

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