From 854142dd8db077487483b42d316f866c0d5e3fee Mon Sep 17 00:00:00 2001 From: "Tux3 / Mlkj / !Lev.uXFMLA" Date: Mon, 27 Oct 2014 22:52:03 +0100 Subject: Fix typo: romdom->random --- toxcore/onion_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toxcore/onion_client.c b/toxcore/onion_client.c index 59190180..11858d4c 100644 --- a/toxcore/onion_client.c +++ b/toxcore/onion_client.c @@ -149,7 +149,7 @@ static int is_path_used(const Onion_Client_Paths *onion_paths, const Node_format } /* Create a new path or use an old suitable one (if pathnum is valid) - * or a rondom one from onion_paths. + * or a random one from onion_paths. * * return -1 on failure * return 0 on success -- cgit v1.2.3 From 7bb0c495ac871a621d838e0db216e17ec9d38aed Mon Sep 17 00:00:00 2001 From: "Tux3 / Mlkj / !Lev.uXFMLA" Date: Mon, 27 Oct 2014 22:57:12 +0100 Subject: Fix DHT memory leak Found with valgrind, in the order of magnitude of 100kB leaked --- toxcore/DHT.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/toxcore/DHT.c b/toxcore/DHT.c index db03def1..52664218 100644 --- a/toxcore/DHT.c +++ b/toxcore/DHT.c @@ -2331,6 +2331,8 @@ void kill_DHT(DHT *dht) ping_array_free_all(&dht->dht_harden_ping_array); kill_ping(dht->ping); free(dht->friends_list); + free(dht->loaded_friends_list); + free(dht->loaded_clients_list); free(dht); } -- cgit v1.2.3