]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
test_helpers: add a missing free for CID 1457527.
authorNick Mathewson <nickm@torproject.org>
Tue, 7 Jan 2020 13:22:02 +0000 (08:22 -0500)
committerNick Mathewson <nickm@torproject.org>
Tue, 7 Jan 2020 13:22:02 +0000 (08:22 -0500)
src/test/test_helpers.c

index 31bf1fcc2ab27518afe28b7ceecedc8a4d856baf..480a42f97a593c69976b8de3a1530b2f6147bad1 100644 (file)
@@ -306,6 +306,7 @@ test_conn_get_proxy_or_connection(unsigned int proxy_type)
   UNMOCK(connection_write_to_buf_impl_);
   UNMOCK(connection_or_change_state);
   UNMOCK(tor_close_socket);
+  connection_free_(TO_CONN(conn));
   return NULL;
 }