Fix memory leak in test_geoip

This commit is contained in:
Nick Mathewson 2014-04-26 00:11:46 -04:00
parent 1cf02605d4
commit fa202c4127

View 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. */