From: Nathan S. Evans Date: Thu, 10 Mar 2011 10:34:22 +0000 (+0000) Subject: memory leak in dht service (small) X-Git-Tag: initial-import-from-subversion-38251~19000 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8c5eea769f6020020a4215e0243e760df1e08754;p=oweals%2Fgnunet.git memory leak in dht service (small) --- diff --git a/src/dht/gnunet-service-dht.c b/src/dht/gnunet-service-dht.c index c5eded564..d26039adc 100644 --- a/src/dht/gnunet-service-dht.c +++ b/src/dht/gnunet-service-dht.c @@ -3017,6 +3017,7 @@ handle_dht_put (const struct GNUNET_MessageHeader *msg, (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 @@ handle_core_connect (void *cls, 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");