[tor-commits] [tor/master] fix memory leak in dump_exit_policy_to_string tests

nickm at torproject.org nickm at torproject.org
Fri Apr 25 05:59:24 UTC 2014


commit 167536a112fdcc4737bf9643639b162c3e79bc68
Author: Nick Mathewson <nickm at torproject.org>
Date:   Fri Apr 25 01:59:20 2014 -0400

    fix memory leak in dump_exit_policy_to_string tests
---
 src/test/test_policy.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/test/test_policy.c b/src/test/test_policy.c
index 491c9a2..e3e7b36 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);



More information about the tor-commits mailing list