aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/connection.c')
-rw-r--r--src/or/connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index fe18c8bae..1cf6f619a 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -249,7 +249,7 @@ int connection_handle_listener_read(connection_t *conn, int new_type) {
}
if(connection_init_accepted_conn(newconn) < 0) {
- connection_free(newconn);
+ newconn->marked_for_close = 1;
return 0;
}
return 0;