diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-10-01 12:12:33 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-10-01 12:12:33 -0500 |
commit | 43211c3a0c4b56d4100daf3a541250b953fb7230 (patch) | |
tree | 17ccca4c79f3a36804363a1430e5996a68d333b7 /src/app/config/config.c | |
parent | 58299b2927ffe4c7db7ddb6b3d44d1567c8a341f (diff) | |
parent | 8812f562a03234723871b893f269db09e78654fc (diff) | |
download | tor-43211c3a0c4b56d4100daf3a541250b953fb7230.tar.gz tor-43211c3a0c4b56d4100daf3a541250b953fb7230.zip |
Merge remote-tracking branch 'public/bug27893'
Diffstat (limited to 'src/app/config/config.c')
-rw-r--r-- | src/app/config/config.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/app/config/config.c b/src/app/config/config.c index d44b17ce65..6e7e131055 100644 --- a/src/app/config/config.c +++ b/src/app/config/config.c @@ -827,6 +827,7 @@ static void config_maybe_load_geoip_files_(const or_options_t *options, static int options_validate_cb(void *old_options, void *options, void *default_options, int from_setconf, char **msg); +static void options_free_cb(void *options); static void cleanup_protocol_warning_severity_level(void); static void set_protocol_warning_severity_level(int warning_severity); @@ -842,6 +843,7 @@ STATIC config_format_t options_format = { option_deprecation_notes_, option_vars_, options_validate_cb, + options_free_cb, NULL }; @@ -3152,6 +3154,13 @@ options_validate_cb(void *old_options, void *options, void *default_options, return rv; } +/** Callback to free an or_options_t */ +static void +options_free_cb(void *options) +{ + or_options_free_(options); +} + #define REJECT(arg) \ STMT_BEGIN *msg = tor_strdup(arg); return -1; STMT_END #if defined(__GNUC__) && __GNUC__ <= 3 |