Free resources in rsa_t.
[tinc] / src / connection.c
index 2fa789b..bdbf1c3 100644 (file)
@@ -78,6 +78,9 @@ void free_connection(connection_t *c) {
        if(c->thread)
                thread_destroy(&c->thread);
 
+       if(c->rsa)
+               rsa_free(c->rsa);
+
        free(c);
 }