aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-04-26 00:11:46 -0400
committerNick Mathewson <nickm@torproject.org>2014-04-26 00:11:46 -0400
commitfa202c4127a7fb0769166cb43757d3fbc8726fc8 (patch)
tree45c448cd2091b8de7670cfc04aeabec3f2afe0f4 /src/test
parent1cf02605d4819f200ac70df6ea6c75cfd1ef14e5 (diff)
downloadtor-fa202c4127a7fb0769166cb43757d3fbc8726fc8.tar
tor-fa202c4127a7fb0769166cb43757d3fbc8726fc8.tar.gz
Fix memory leak in test_geoip
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/test.c b/src/test/test.c
index 9bceab5c0..f7e26a6f3 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. */