[tor-commits] [tor/master] test_helpers: add a missing free for CID 1457527.

nickm at torproject.org nickm at torproject.org
Tue Jan 7 13:22:11 UTC 2020


commit c48068ece3002aeefb3ec959e1fe4817815f1129
Author: Nick Mathewson <nickm at torproject.org>
Date:   Tue Jan 7 08:22:02 2020 -0500

    test_helpers: add a missing free for CID 1457527.
---
 src/test/test_helpers.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/test/test_helpers.c b/src/test/test_helpers.c
index 31bf1fcc2..480a42f97 100644
--- a/src/test/test_helpers.c
+++ b/src/test/test_helpers.c
@@ -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;
 }
 



More information about the tor-commits mailing list