Add missing cleanup functions in close_network_connections().
This commit is contained in:
parent
116065afe3
commit
a7e793c94e
1 changed files with 3 additions and 0 deletions
|
@ -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]);
|
||||
|
||||
|
|
Loading…
Reference in a new issue