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/common | |
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/common')
-rw-r--r-- | src/common/log.c | 2 | ||||
-rw-r--r-- | src/common/tortls.c | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/common/log.c b/src/common/log.c index aa13db9f0a..0f59a93ac2 100644 --- a/src/common/log.c +++ b/src/common/log.c @@ -431,6 +431,8 @@ logs_free_all(void) log_free(victim); } tor_free(appname); + tor_mutex_free(log_mutex); + log_mutex = NULL; } /** Remove and free the log entry <b>victim</b> from the linked-list diff --git a/src/common/tortls.c b/src/common/tortls.c index ac2f8ebc8a..07cf17bc17 100644 --- a/src/common/tortls.c +++ b/src/common/tortls.c @@ -314,6 +314,10 @@ tor_tls_free_all(void) tor_tls_context_decref(global_tls_context); global_tls_context = NULL; } + if (!HT_EMPTY(&tlsmap_root)) { + log_warn(LD_MM, "Still have entries in the tlsmap at shutdown."); + } + HT_CLEAR(tlsmap, &tlsmap_root); } /** We need to give OpenSSL a callback to verify certificates. This is |