commit b4b07c17e3ecdcc30f02a7fb2968b675dd970639 Author: Nick Mathewson nickm@torproject.org Date: Sat Apr 26 00:36:09 2014 -0400
Fix leaks in test_exit_policy_dump_to_string --- src/test/test_policy.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/src/test/test_policy.c b/src/test/test_policy.c index e3e7b36..4cdcd03 100644 --- a/src/test/test_policy.c +++ b/src/test/test_policy.c @@ -394,6 +394,7 @@ test_dump_exit_policy_to_string(void *arg) ep = router_dump_exit_policy_to_string(ri,1,1);
test_streq("accept *:*\nreject *:25\nreject 8.8.8.8:*",ep); + tor_free(ep);
policy_entry = router_parse_addr_policy_item_from_string("reject6 [FC00::]/7:*",-1); @@ -421,6 +422,7 @@ test_dump_exit_policy_to_string(void *arg) if (ri->exit_policy) { SMARTLIST_FOREACH(ri->exit_policy, addr_policy_t *, entry, addr_policy_free(entry)); + smartlist_free(ri->exit_policy); } tor_free(ri); tor_free(ep);