X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fconnection.c;h=5a6bc746208862c2ee771db905e556eecd8cb594;hb=cdb793f687262b9f56823ca9046523a609a758af;hp=fecb48d42d141d37a1830e039fd91e8d629736d9;hpb=f431fcb35f400be388a905ae0f7f50c1f5c4cd5d;p=tinc diff --git a/src/connection.c b/src/connection.c index fecb48d4..5a6bc746 100644 --- a/src/connection.c +++ b/src/connection.c @@ -75,8 +75,8 @@ void free_connection(connection_t *c) { if(c->config_tree) exit_configuration(&c->config_tree); - if(c->buffer) - bufferevent_free(c->buffer); + buffer_clear(&c->inbuf); + buffer_clear(&c->outbuf); if(event_initialized(&c->inevent)) event_del(&c->inevent);