aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-04-25 01:59:20 -0400
committerNick Mathewson <nickm@torproject.org>2014-04-25 01:59:20 -0400
commit167536a112fdcc4737bf9643639b162c3e79bc68 (patch)
treee7bc4f8fb0f284cabf83e9ce4e99ff1b4d0e9555 /src/test
parent63426f79cb152e2e4cb7fc355412cc82faf29d6b (diff)
downloadtor-167536a112fdcc4737bf9643639b162c3e79bc68.tar
tor-167536a112fdcc4737bf9643639b162c3e79bc68.tar.gz
fix memory leak in dump_exit_policy_to_string tests
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test_policy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/test_policy.c b/src/test/test_policy.c
index 491c9a21f..e3e7b3673 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);