commit b0e601086148b9f39f113da12c9d14ddd00f0f1e Author: teor (Tim Wilson-Brown) teor2345@gmail.com Date: Fri Nov 27 01:11:25 2015 +1100
Correctly free a smartlist in getinfo_helper_policies --- src/or/policies.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/or/policies.c b/src/or/policies.c index ec11375..d531b3a 100644 --- a/src/or/policies.c +++ b/src/or/policies.c @@ -2168,7 +2168,8 @@ getinfo_helper_policies(control_connection_t *conn, *answer = policy_dump_to_string(private_policy_list, 1, 1);
addr_policy_list_free(private_policy_list); - addr_policy_list_free(configured_addresses); + /* the addresses in configured_addresses are not ours to free */ + smartlist_free(configured_addresses); } else if (!strcmpstart(question, "exit-policy/")) { const routerinfo_t *me = router_get_my_routerinfo();