projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
faecd2a
)
memory leak in dht service (small)
author
Nathan S. Evans
<evans@in.tum.de>
Thu, 10 Mar 2011 10:34:22 +0000
(10:34 +0000)
committer
Nathan S. Evans
<evans@in.tum.de>
Thu, 10 Mar 2011 10:34:22 +0000
(10:34 +0000)
src/dht/gnunet-service-dht.c
patch
|
blob
|
history
diff --git
a/src/dht/gnunet-service-dht.c
b/src/dht/gnunet-service-dht.c
index c5eded564cb88d92defa23d210b6d78832a8aae4..d26039adc83dfe3e4b0b52a3f3b659a425a8aec2 100644
(file)
--- 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");