From a7e793c94ec414eb71ec2aa3debc9e2e5ed5cfef Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Mon, 19 Jan 2009 23:17:28 +0100 Subject: [PATCH] Add missing cleanup functions in close_network_connections(). --- src/net_setup.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/net_setup.c b/src/net_setup.c index d6d145a..f52afb0 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]); -- 2.25.1