diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-11-21 08:39:07 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-12-08 14:47:19 -0500 |
commit | 0792cc107ef588b9f9fa27165b73e19fbf07e92b (patch) | |
tree | 3194ccd5f53837a866288647b25f8c7b294cf22c /src/or/connection.h | |
parent | a48ba072a98a5d946079e2e0c15c84bb8c9d1a19 (diff) | |
download | tor-0792cc107ef588b9f9fa27165b73e19fbf07e92b.tar.gz tor-0792cc107ef588b9f9fa27165b73e19fbf07e92b.zip |
Convert connection_free to a nulling macro.
Diffstat (limited to 'src/or/connection.h')
-rw-r--r-- | src/or/connection.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/connection.h b/src/or/connection.h index 89f80a42c6..d1811c79bf 100644 --- a/src/or/connection.h +++ b/src/or/connection.h @@ -29,7 +29,8 @@ connection_t *connection_new(int type, int socket_family); int connection_init_accepted_conn(connection_t *conn, const listener_connection_t *listener); void connection_link_connections(connection_t *conn_a, connection_t *conn_b); -MOCK_DECL(void,connection_free,(connection_t *conn)); +MOCK_DECL(void,connection_free_,(connection_t *conn)); +#define connection_free(conn) FREE_AND_NULL(connection, (conn)) void connection_free_all(void); void connection_about_to_close_connection(connection_t *conn); void connection_close_immediate(connection_t *conn); |