diff options
author | Roger Dingledine <arma@torproject.org> | 2007-07-16 04:33:47 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2007-07-16 04:33:47 +0000 |
commit | 6d2cb32d10fef60d53131ac9746fa9f9cec64fac (patch) | |
tree | b5078a70d1fea9163167434fb7542b1839558473 /src/common/log.c | |
parent | 4b719cbae00308fd7175a4e7366254e5d578061c (diff) | |
download | tor-6d2cb32d10fef60d53131ac9746fa9f9cec64fac.tar.gz tor-6d2cb32d10fef60d53131ac9746fa9f9cec64fac.zip |
free some more memory on exit
svn:r10837
Diffstat (limited to 'src/common/log.c')
-rw-r--r-- | src/common/log.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common/log.c b/src/common/log.c index 83ed7d143e..d471e9f1ef 100644 --- a/src/common/log.c +++ b/src/common/log.c @@ -361,9 +361,9 @@ _log_err(uint32_t domain, const char *format, ...) } #endif -/** Close all open log files. */ +/** Close all open log files, and free other static memory. */ void -close_logs(void) +logs_free_all(void) { logfile_t *victim, *next; next = logfiles; @@ -375,6 +375,7 @@ close_logs(void) tor_free(victim->filename); tor_free(victim); } + tor_free(appname); } /** Remove and free the log entry <b>victim</b> from the linked-list |