mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fix DHT memory leak
Found with valgrind, in the order of magnitude of 100kB leaked
This commit is contained in:
parent
854142dd8d
commit
7bb0c495ac
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user