From: cypherpunks Date: Thu, 26 Nov 2015 18:03:44 +0000 (+0100) Subject: Fix memory leak in policies test X-Git-Tag: tor-0.2.8.1-alpha~197^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8ce70fcbf35630889e6acc64388476ea0c859a1e;p=thirdparty%2Ftor.git Fix memory leak in policies test --- 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