summaryrefslogtreecommitdiff
path: root/src/or/policies.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-04-23 20:47:53 +0000
committerNick Mathewson <nickm@torproject.org>2008-04-23 20:47:53 +0000
commitd02d6660a87bd7c2b2177bb595c6894cfb4bd148 (patch)
tree5fcc2e5dfbaf9a4ccc9f6a567b8f365078286e8f /src/or/policies.c
parent05b184de01c4e7bc3afda55e881d511f581d8c0b (diff)
downloadtor-d02d6660a87bd7c2b2177bb595c6894cfb4bd148.tar.gz
tor-d02d6660a87bd7c2b2177bb595c6894cfb4bd148.zip
r15308@tombo: nickm | 2008-04-23 16:46:48 -0400
Free baddir and badexit policy lists on exit. fixes bug 672. only affects authorities. svn:r14431
Diffstat (limited to 'src/or/policies.c')
-rw-r--r--src/or/policies.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/policies.c b/src/or/policies.c
index 2e66a00323..06ca6cdded 100644
--- a/src/or/policies.c
+++ b/src/or/policies.c
@@ -923,6 +923,10 @@ policies_free_all(void)
authdir_reject_policy = NULL;
addr_policy_list_free(authdir_invalid_policy);
authdir_invalid_policy = NULL;
+ addr_policy_list_free(authdir_baddir_policy);
+ authdir_baddir_policy = NULL;
+ addr_policy_list_free(authdir_badexit_policy);
+ authdir_badexit_policy = NULL;
if (!HT_EMPTY(&policy_root))
log_warn(LD_MM, "Still had some address policies cached at shutdown.");