diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/or/config.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/or/config.c b/src/or/config.c index 0f8441b183..7ca20e46b4 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -606,9 +606,12 @@ set_options(or_options_t *new_val, char **msg) var_name, 1); if (line) { - for (; line; line = line->next) { + config_line_t *next; + for (; line; line = next) { + next = line->next; smartlist_add(elements, line->key); smartlist_add(elements, line->value); + tor_free(line); } } else { smartlist_add(elements, (char*)options_format.vars[i].name); |