X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fnet.c;h=1b5bb16693f1e700da422451b1f47017afe2ad5a;hb=fbf305c09d91bf34b1504b58d50392df2e6bcfba;hp=2c7cc55a7813b7326d9875e65c9e153a8a373a83;hpb=59108e4e4f7aa4632c510d16961edd8c551a6542;p=meshlink diff --git a/src/net.c b/src/net.c index 2c7cc55a..1b5bb166 100644 --- a/src/net.c +++ b/src/net.c @@ -121,8 +121,6 @@ void terminate_connection(connection_t *c, bool report) { if(c->socket) closesocket(c->socket); - event_del(&c->ev); - if(c->edge) { if(report && !tunnelserver) send_del_edge(broadcast, c->edge); @@ -146,12 +144,6 @@ void terminate_connection(connection_t *c, bool report) { } } - free(c->outbuf); - c->outbuf = NULL; - c->outbuflen = 0; - c->outbufsize = 0; - c->outbufstart = 0; - /* Check if this was our outgoing connection */ if(c->outgoing)