]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix memory leak in policies test
authorcypherpunks <cypherpunks@torproject.org>
Thu, 26 Nov 2015 18:03:44 +0000 (19:03 +0100)
committerNick Mathewson <nickm@torproject.org>
Fri, 27 Nov 2015 16:54:47 +0000 (11:54 -0500)
src/test/test_policy.c

index 082f9305519a19ac478c2e71b2513562645c1aeb..b7d89a1445eac1617b3069f3b185d55398e260b2 100644 (file)
@@ -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