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 839da4310..3ed6b8bc9 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -158,7 +158,7 @@ void connection_free(connection_t *conn) {
tor_close_socket(conn->s);
}
memset(conn, 0xAA, sizeof(connection_t)); /* poison memory */
- free(conn);
+ tor_free(conn);
}
/** Call connection_free() on every connection in our array.