]> www.tinc-vpn.org Git - tinc/blobdiff - src/connection.c
Free resources in rsa_t.
[tinc] / src / connection.c
index cf5ec1b60507d7815c1d6a730eb3a76b0e356b14..bdbf1c3dc2c23922f4746ec000078d83864aba10 100644 (file)
@@ -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);
 }