From a47765a16d80569031180db9a5c8dcb9b8b3e59c Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Fri, 26 Aug 2005 20:26:20 +0000 Subject: [PATCH] stop freeing the new global options list whenever we update it. svn:r4853 --- src/or/config.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/or/config.c b/src/or/config.c index 9e0ab4c2f8..aaf4cf08fa 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -364,12 +364,14 @@ set_options(or_options_t *new_val) { or_options_t *old_options = global_options; global_options = new_val; + /* Note that we pass the *old* options below, for comparison. It + * pulls the new options directly out of global_options. */ if (options_act(old_options) < 0) { /* acting on the options failed. die. */ log_fn(LOG_ERR,"Acting on config options left us in a broken state. Dying."); exit(1); } if (old_options) - config_free(&options_format, global_options); + config_free(&options_format, old_options); } void