[tor-commits] [tor/master] Bug 19859: Fix double-free in unit test

nickm at torproject.org nickm at torproject.org
Mon Nov 25 13:41:25 UTC 2019


commit f487da518a9828b194c8f1c8cf6da14955c6bdc4
Author: JeremyRand <biolizard89 at gmail.com>
Date:   Tue Nov 12 17:13:04 2019 +0000

    Bug 19859: Fix double-free in unit test
---
 src/test/test_controller_events.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/test/test_controller_events.c b/src/test/test_controller_events.c
index 148127cce..9267aa0e4 100644
--- a/src/test/test_controller_events.c
+++ b/src/test/test_controller_events.c
@@ -663,8 +663,6 @@ test_cntev_format_stream(void *arg)
     "ISO_FIELDS=DESTPORT,SOCKS_USERNAME,SOCKS_PASSWORD,NYM_EPOCH,"));
 
  done:
-  tor_free(username);
-  tor_free(password);
   tor_free(conndesc);
   connection_free_minimal(ENTRY_TO_CONN(ec));
 }





More information about the tor-commits mailing list