test_helpers: add a missing free for CID 1457527.

This commit is contained in:
Nick Mathewson 2020-01-07 08:22:02 -05:00
parent f2aeaaf71d
commit c48068ece3

View file

@ -306,6 +306,7 @@ test_conn_get_proxy_or_connection(unsigned int proxy_type)
UNMOCK(connection_write_to_buf_impl_); UNMOCK(connection_write_to_buf_impl_);
UNMOCK(connection_or_change_state); UNMOCK(connection_or_change_state);
UNMOCK(tor_close_socket); UNMOCK(tor_close_socket);
connection_free_(TO_CONN(conn));
return NULL; return NULL;
} }