From: Nick Mathewson Date: Fri, 25 Apr 2014 05:59:20 +0000 (-0400) Subject: fix memory leak in dump_exit_policy_to_string tests X-Git-Tag: tor-0.2.5.4-alpha~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=167536a112fdcc4737bf9643639b162c3e79bc68;p=thirdparty%2Ftor.git fix memory leak in dump_exit_policy_to_string tests --- diff --git a/src/test/test_policy.c b/src/test/test_policy.c index 491c9a21fb..e3e7b36733 100644 --- a/src/test/test_policy.c +++ b/src/test/test_policy.c @@ -404,6 +404,7 @@ test_dump_exit_policy_to_string(void *arg) test_streq("accept *:*\nreject *:25\nreject 8.8.8.8:*\n" "reject6 [fc00::]/7:*",ep); + tor_free(ep); policy_entry = router_parse_addr_policy_item_from_string("accept6 [c000::]/3:*",-1);