Commit a47765a1 authored by Roger Dingledine's avatar Roger Dingledine
Browse files

stop freeing the new global options list whenever we update it.

parent 237f5852
......@@ -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.");
if (old_options)
config_free(&options_format, global_options);
config_free(&options_format, old_options);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment