Fix DHT memory leak

Found with valgrind, in the order of magnitude of 100kB leaked
This commit is contained in:
Tux3 / Mlkj / !Lev.uXFMLA 2014-10-27 22:57:12 +01:00
parent 854142dd8d
commit 7bb0c495ac
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -2331,6 +2331,8 @@ void kill_DHT(DHT *dht)
ping_array_free_all(&dht->dht_harden_ping_array); ping_array_free_all(&dht->dht_harden_ping_array);
kill_ping(dht->ping); kill_ping(dht->ping);
free(dht->friends_list); free(dht->friends_list);
free(dht->loaded_friends_list);
free(dht->loaded_clients_list);
free(dht); free(dht);
} }