aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_policy.c
diff options
context:
space:
mode:
authorcypherpunks <cypherpunks@torproject.org>2015-11-26 19:03:44 +0100
committerNick Mathewson <nickm@torproject.org>2015-11-27 11:54:47 -0500
commit8ce70fcbf35630889e6acc64388476ea0c859a1e (patch)
tree480ff778670afc1fef8d333c121edb4201b883f5 /src/test/test_policy.c
parent3f83ea84c73e5066eaac87080322f13fc0c7ab91 (diff)
downloadtor-8ce70fcbf35630889e6acc64388476ea0c859a1e.tar.gz
tor-8ce70fcbf35630889e6acc64388476ea0c859a1e.zip
Fix memory leak in policies test
Diffstat (limited to 'src/test/test_policy.c')
-rw-r--r--src/test/test_policy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_policy.c b/src/test/test_policy.c
index 082f930551..b7d89a1445 100644
--- a/src/test/test_policy.c
+++ b/src/test/test_policy.c
@@ -1033,7 +1033,7 @@ test_policies_getinfo_helper_policies(void *arg)
tor_free(answer);
UNMOCK(get_options);
UNMOCK(router_get_my_routerinfo);
- smartlist_free(mock_my_routerinfo.exit_policy);
+ addr_policy_list_free(mock_my_routerinfo.exit_policy);
}
#undef DEFAULT_POLICY_STRING