summaryrefslogtreecommitdiff
path: root/src/or/config.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-11-17 11:46:25 -0500
committerNick Mathewson <nickm@torproject.org>2017-11-17 12:01:19 -0500
commit94db8f32e46925c3a64def751e5d2efbddbdf417 (patch)
tree8439c65932841c498624b3c1e7c7db9994672a34 /src/or/config.c
parentc1bdb80aba64ac378784840d231b0db098c05474 (diff)
downloadtor-94db8f32e46925c3a64def751e5d2efbddbdf417.tar.gz
tor-94db8f32e46925c3a64def751e5d2efbddbdf417.zip
Make all the free() functions from container.h clear their targets
Diffstat (limited to 'src/or/config.c')
-rw-r--r--src/or/config.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/config.c b/src/or/config.c
index b0a140d23b..fac3a36d10 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -778,7 +778,7 @@ static or_options_t *global_default_options = NULL;
/** Name of most recently read torrc file. */
static char *torrc_fname = NULL;
/** Name of the most recently read torrc-defaults file.*/
-static char *torrc_defaults_fname;
+static char *torrc_defaults_fname = NULL;
/** Configuration options set by command line. */
static config_line_t *global_cmdline_options = NULL;
/** Non-configuration options set by the command line */
@@ -977,6 +977,8 @@ config_free_all(void)
tor_free(the_short_tor_version);
tor_free(the_tor_version);
+
+ have_parsed_cmdline = 0;
}
/** Make <b>address</b> -- a piece of information related to our operation as