X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fconnection.c;h=bdbf1c3dc2c23922f4746ec000078d83864aba10;hb=refs%2Fheads%2F1.1-threads;hp=cf5ec1b60507d7815c1d6a730eb3a76b0e356b14;hpb=1b30cee086148975886f961aadc26e23b1bfd6f2;p=tinc diff --git a/src/connection.c b/src/connection.c index cf5ec1b6..bdbf1c3d 100644 --- a/src/connection.c +++ b/src/connection.c @@ -75,12 +75,12 @@ void free_connection(connection_t *c) { if(c->config_tree) exit_configuration(&c->config_tree); - if(c->buffer) - bufferevent_free(c->buffer); - if(c->thread) thread_destroy(&c->thread); + if(c->rsa) + rsa_free(c->rsa); + free(c); }