diff options
author | Nathan S. Evans <evans@in.tum.de> | 2011-03-10 10:34:22 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2011-03-10 10:34:22 +0000 |
commit | 8c5eea769f6020020a4215e0243e760df1e08754 (patch) | |
tree | 2f1ace9447c785d5843b247df31ab731f0c349c1 /src/dht/gnunet-service-dht.c | |
parent | faecd2a496b5d356509b0b6b0157db34e8b3188e (diff) | |
download | gnunet-8c5eea769f6020020a4215e0243e760df1e08754.tar.gz gnunet-8c5eea769f6020020a4215e0243e760df1e08754.zip |
memory leak in dht service (small)
Diffstat (limited to 'src/dht/gnunet-service-dht.c')
-rw-r--r-- | src/dht/gnunet-service-dht.c | 2 |
1 files changed, 2 insertions, 0 deletions
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, | |||
3017 | (char *) put_entry, put_type, | 3017 | (char *) put_entry, put_type, |
3018 | GNUNET_TIME_absolute_ntoh | 3018 | GNUNET_TIME_absolute_ntoh |
3019 | (put_msg->expiration)); | 3019 | (put_msg->expiration)); |
3020 | GNUNET_free (put_entry); | ||
3020 | 3021 | ||
3021 | if ((ret == GNUNET_YES) && (do_republish == GNUNET_YES)) | 3022 | if ((ret == GNUNET_YES) && (do_republish == GNUNET_YES)) |
3022 | { | 3023 | { |
@@ -5216,6 +5217,7 @@ handle_core_connect (void *cls, | |||
5216 | sizeof(struct DHTPutEntry) + sizeof (struct GNUNET_PeerIdentity), | 5217 | sizeof(struct DHTPutEntry) + sizeof (struct GNUNET_PeerIdentity), |
5217 | (char *)put_entry, GNUNET_BLOCK_TYPE_DHT_HELLO, | 5218 | (char *)put_entry, GNUNET_BLOCK_TYPE_DHT_HELLO, |
5218 | GNUNET_TIME_absolute_get_forever ()); | 5219 | GNUNET_TIME_absolute_get_forever ()); |
5220 | GNUNET_free (put_entry); | ||
5219 | } | 5221 | } |
5220 | else if (datacache == NULL) | 5222 | else if (datacache == NULL) |
5221 | GNUNET_log(GNUNET_ERROR_TYPE_WARNING, "DHT has no connection to datacache!\n"); | 5223 | GNUNET_log(GNUNET_ERROR_TYPE_WARNING, "DHT has no connection to datacache!\n"); |