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