From 8c5eea769f6020020a4215e0243e760df1e08754 Mon Sep 17 00:00:00 2001 From: "Nathan S. Evans" Date: Thu, 10 Mar 2011 10:34:22 +0000 Subject: [PATCH] memory leak in dht service (small) --- src/dht/gnunet-service-dht.c | 2 ++ 1 file changed, 2 insertions(+) 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"); -- 2.25.1