]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Correctly free a smartlist in getinfo_helper_policies
authorteor (Tim Wilson-Brown) <teor2345@gmail.com>
Thu, 26 Nov 2015 14:11:25 +0000 (01:11 +1100)
committerNick Mathewson <nickm@torproject.org>
Thu, 26 Nov 2015 14:32:33 +0000 (09:32 -0500)
src/or/policies.c

index ec11375636a54f04bf8fa193aec3de5187364efc..d531b3ac78fc340e90f8ff03ccc0b846f1145d86 100644 (file)
@@ -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();