diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-03-27 15:05:28 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-03-27 15:05:28 +0000 |
commit | 02acee891c9898e510bb21e4a6b88e44ff4a13f9 (patch) | |
tree | a0410637ae1688d18327205b21c7aa529e147fc6 /src/or/main.c | |
parent | 03078f7f7a9aec4aa94b05f71d92458ec865b9a0 (diff) | |
download | tor-02acee891c9898e510bb21e4a6b88e44ff4a13f9.tar.gz tor-02acee891c9898e510bb21e4a6b88e44ff4a13f9.zip |
r19089@catbus: nickm | 2008-03-27 11:05:23 -0400
Free some static hashtables and the log mutex on exit. Backport candidate.
svn:r14212
Diffstat (limited to 'src/or/main.c')
-rw-r--r-- | src/or/main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/main.c b/src/or/main.c index b569efde1b..6c75c3976a 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -1849,13 +1849,15 @@ tor_free_all(int postfork) entry_guards_free_all(); connection_free_all(); buf_shrink_freelists(1); - policies_free_all(); if (!postfork) { config_free_all(); router_free_all(); + policies_free_all(); } free_cell_pool(); - tor_tls_free_all(); + if (!postfork) { + tor_tls_free_all(); + } /* stuff in main.c */ smartlist_free(connection_array); smartlist_free(closeable_connection_lst); |