projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Introducing the Big Tinc Lock.
[tinc]
/
src
/
connection.c
diff --git
a/src/connection.c
b/src/connection.c
index
fecb48d
..
2fa789b
100644
(file)
--- a/
src/connection.c
+++ b/
src/connection.c
@@
-75,11
+75,8
@@
void free_connection(connection_t *c) {
if(c->config_tree)
exit_configuration(&c->config_tree);
- if(c->buffer)
- bufferevent_free(c->buffer);
-
- if(event_initialized(&c->inevent))
- event_del(&c->inevent);
+ if(c->thread)
+ thread_destroy(&c->thread);
free(c);
}