]> git.meshlink.io Git - meshlink/commitdiff
Remove outgoing event in free_connection().
authorGuus Sliepen <guus@tinc-vpn.org>
Sun, 29 May 2011 20:34:19 +0000 (22:34 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Sun, 29 May 2011 20:34:19 +0000 (22:34 +0200)
src/connection.c

index 5a6bc746208862c2ee771db905e556eecd8cb594..7fbb0fc03a177ebc1823b0cc0afdf12653f56a0a 100644 (file)
@@ -81,6 +81,9 @@ void free_connection(connection_t *c) {
        if(event_initialized(&c->inevent))
                event_del(&c->inevent);
 
+       if(event_initialized(&c->outevent))
+               event_del(&c->outevent);
+
        free(c);
 }