mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Correctly free a smartlist in getinfo_helper_policies
This commit is contained in:
committed by
Nick Mathewson
parent
4e3e526493
commit
b0e6010861
+2
-1
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user