summaryrefslogtreecommitdiff
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, 0 insertions, 2 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index dccbfc6771..d410e9b895 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -313,12 +313,10 @@ void connection_close_immediate(connection_t *conn)
if (conn->read_event) {
event_del(conn->read_event);
tor_free(conn->read_event);
- conn->read_event = NULL;
}
if (conn->write_event) {
event_del(conn->write_event);
tor_free(conn->write_event);
- conn->write_event = NULL;
}
tor_close_socket(conn->s);
conn->s = -1;