diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-02-11 01:26:47 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-02-11 01:26:47 +0000 |
commit | f672577bc6d32ecfe96582b463a83cac8eaac66f (patch) | |
tree | 03999d6f3338a1383cea660189cad8f6fcdf08b2 /src/or/config.c | |
parent | 60f234f42b63ed6a5208c70bbc4c32e532cc903d (diff) | |
download | tor-f672577bc6d32ecfe96582b463a83cac8eaac66f.tar.gz tor-f672577bc6d32ecfe96582b463a83cac8eaac66f.zip |
Free even more things on shutdown. Temporarily move tor_free_all out from #ifdef so it gets tested more.
svn:r3614
Diffstat (limited to 'src/or/config.c')
-rw-r--r-- | src/or/config.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c index 0c90b00d44..e8142176d6 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -232,6 +232,13 @@ set_options(or_options_t *new_val) { global_options = new_val; } +void +config_free_all(void) +{ + options_free(global_options); + tor_free(config_fname); +} + /** Fetch the active option list, and take actions based on it. All * of the things we do should survive being done repeatedly. * Return 0 if all goes well, return -1 if it's time to die. |