diff options
author | teor (Tim Wilson-Brown) <teor2345@gmail.com> | 2015-11-27 01:11:25 +1100 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-11-26 09:32:33 -0500 |
commit | b0e601086148b9f39f113da12c9d14ddd00f0f1e (patch) | |
tree | 1051d109889d6fe7106db8c03da019458b435ec8 /src/or/policies.c | |
parent | 4e3e5264938e8d2ea2f7c27005baf8e074e098e9 (diff) | |
download | tor-b0e601086148b9f39f113da12c9d14ddd00f0f1e.tar.gz tor-b0e601086148b9f39f113da12c9d14ddd00f0f1e.zip |
Correctly free a smartlist in getinfo_helper_policies
Diffstat (limited to 'src/or/policies.c')
-rw-r--r-- | src/or/policies.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/policies.c b/src/or/policies.c index ec11375636..d531b3ac78 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(); |