tor/changes/bug27893
Nick Mathewson 8812f562a0 Fix a memory leak in --dump-config
When freeing a configuration object from confparse.c in
dump_config(), we need to call the appropriate higher-level free
function (like or_options_free()) and not just config_free().

This only happens with options (since they're the one where
options_validate allocates extra stuff) and only when running
--dump-config with something other than minimal (since
OPTIONS_DUMP_MINIMAL doesn't hit this code).

Fixes bug 27893; bugfix on 0.3.2.1-alpha.
2018-09-27 13:05:19 -04:00

4 lines
150 B
Plaintext

o Minor bugfixes (memory leaks):
- Fix a small memory leak when calling Tor with --dump-config.
Fixes bug 27893; bugfix on 0.3.2.1-alpha.