gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r14623 - gnunet/src/dht


From: gnunet
Subject: [GNUnet-SVN] r14623 - gnunet/src/dht
Date: Thu, 10 Mar 2011 11:34:22 +0100

Author: nevans
Date: 2011-03-10 11:34:22 +0100 (Thu, 10 Mar 2011)
New Revision: 14623

Modified:
   gnunet/src/dht/gnunet-service-dht.c
Log:
memory leak in dht service (small)

Modified: gnunet/src/dht/gnunet-service-dht.c
===================================================================
--- gnunet/src/dht/gnunet-service-dht.c 2011-03-10 09:36:50 UTC (rev 14622)
+++ gnunet/src/dht/gnunet-service-dht.c 2011-03-10 10:34:22 UTC (rev 14623)
@@ -3017,6 +3017,7 @@
                                   (char *) put_entry, put_type,
                                   GNUNET_TIME_absolute_ntoh
                                   (put_msg->expiration));
+      GNUNET_free (put_entry);
 
       if ((ret == GNUNET_YES) && (do_republish == GNUNET_YES))
         {
@@ -5216,6 +5217,7 @@
                             sizeof(struct DHTPutEntry) + sizeof (struct 
GNUNET_PeerIdentity),
                             (char *)put_entry, GNUNET_BLOCK_TYPE_DHT_HELLO,
                             GNUNET_TIME_absolute_get_forever ());
+      GNUNET_free (put_entry);
     }
   else if (datacache == NULL)
     GNUNET_log(GNUNET_ERROR_TYPE_WARNING, "DHT has no connection to 
datacache!\n");




reply via email to

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