Fixed memory leak.

This commit is contained in:
irungentoo 2015-02-06 19:18:40 -05:00
parent 57c22b1acb
commit 62f8910fb7
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98

View File

@ -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);