Add missing cleanup functions in close_network_connections().

This commit is contained in:
Guus Sliepen 2009-01-19 23:17:28 +01:00
parent 116065afe3
commit a7e793c94e

View file

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