From e14725a577ba37da04e3693bac9f223674b92e08 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 23 Apr 2008 20:48:14 +0000 Subject: [PATCH] r15309@tombo: nickm | 2008-04-23 16:47:17 -0400 Backport: Free baddir and badexit policy lists on exit. fixes bug 672. only affects authorities. svn:r14432 --- ChangeLog | 4 ++++ src/or/policies.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 9d92be9397..947158116b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,10 @@ Changes in version 0.2.0.25-rc - 2008-04-23 Otherwise, many BSD-family implementations will crash hard on startup. Fixes bug 671. Bugfix on 0.2.0.24-rc. + o Minor bugfixes + - Authorities correctly free policies on bad servers on + exit. Fixes bug 672. + Changes in version 0.2.0.24-rc - 2008-04-22 o New directory authorities: diff --git a/src/or/policies.c b/src/or/policies.c index e28ba3cb48..1222c17413 100644 --- a/src/or/policies.c +++ b/src/or/policies.c @@ -922,6 +922,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.");