From: Guus Sliepen Date: Mon, 19 Jan 2009 22:17:28 +0000 (+0100) Subject: Add missing cleanup functions in close_network_connections(). X-Git-Tag: release-1.0.10~92 X-Git-Url: https://tinc-vpn.org/git/browse?a=commitdiff_plain;h=a7e793c94ec414eb71ec2aa3debc9e2e5ed5cfef;p=tinc Add missing cleanup functions in close_network_connections(). --- diff --git a/src/net_setup.c b/src/net_setup.c index d6d145ae..f52afb04 100644 --- a/src/net_setup.c +++ b/src/net_setup.c @@ -586,6 +586,7 @@ void close_network_connections(void) if(myself && myself->connection) { subnet_update(myself, NULL, false); terminate_connection(myself->connection, false); + free_connection(myself->connection); } for(i = 0; i < listen_sockets; i++) { @@ -610,6 +611,8 @@ void close_network_connections(void) if(myport) free(myport); + EVP_CIPHER_CTX_cleanup(&packet_ctx); + for(i = 0; i < 4; i++) free(envp[i]);