From 62f8910fb7af847646c08b5986dfa27970dcad3c Mon Sep 17 00:00:00 2001 From: irungentoo Date: Fri, 6 Feb 2015 19:18:40 -0500 Subject: [PATCH] Fixed memory leak. --- toxcore/net_crypto.c | 1 + 1 file changed, 1 insertion(+) diff --git a/toxcore/net_crypto.c b/toxcore/net_crypto.c index 1925d95f..bd5616a2 100644 --- a/toxcore/net_crypto.c +++ b/toxcore/net_crypto.c @@ -2722,6 +2722,7 @@ int crypto_kill(Net_Crypto *c, int crypt_connection_id) disconnect_peer_tcp(c, crypt_connection_id); bs_list_remove(&c->ip_port_list, &conn->ip_port, crypt_connection_id); + clear_temp_packet(c, crypt_connection_id); clear_buffer(&conn->send_array); clear_buffer(&conn->recv_array); ret = wipe_crypto_connection(c, crypt_connection_id);