[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Fix memory leak in test_geoip



commit fa202c4127a7fb0769166cb43757d3fbc8726fc8
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Sat Apr 26 00:11:46 2014 -0400

    Fix memory leak in test_geoip
---
 src/test/test.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/test/test.c b/src/test/test.c
index 9bceab5..f7e26a6 100644
--- a/src/test/test.c
+++ b/src/test/test.c
@@ -955,6 +955,7 @@ test_geoip(void)
   geoip_start_dirreq((uint64_t) 1, 1024, DIRREQ_TUNNELED);
   s = geoip_format_dirreq_stats(now + 86400);
   test_streq(dirreq_stats_4, s);
+  tor_free(s);
 
   /* Stop collecting directory request statistics and start gathering
    * entry stats. */



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits