]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix memory leak in test_geoip
authorNick Mathewson <nickm@torproject.org>
Sat, 26 Apr 2014 04:11:46 +0000 (00:11 -0400)
committerNick Mathewson <nickm@torproject.org>
Sat, 26 Apr 2014 04:11:46 +0000 (00:11 -0400)
src/test/test.c

index 9bceab5c05314c71fcb8e69e7d5e9b044d7cd90d..f7e26a6f3c1149125a3986a3b01a8354c7e3151b 100644 (file)
@@ -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. */