diff options
author | Daniel Pinto <danielpinto52@gmail.com> | 2020-06-03 22:09:54 +0100 |
---|---|---|
committer | Daniel Pinto <danielpinto52@gmail.com> | 2020-07-15 22:01:08 +0100 |
commit | 3c70f26dc07cea98e009dc8b15009ca8e72ba226 (patch) | |
tree | 8c679584f7119d81d9a18b24120677db0ebd6904 /src/test/test_config.c | |
parent | 49dab42782e06e51c218cf40b8cbb98b80d9803f (diff) | |
download | tor-3c70f26dc07cea98e009dc8b15009ca8e72ba226.tar.gz tor-3c70f26dc07cea98e009dc8b15009ca8e72ba226.zip |
Fix small memory leak in config include tests
Tests that used options_init_from_string were not freeing calling
config_free_all().
Diffstat (limited to 'src/test/test_config.c')
-rw-r--r-- | src/test/test_config.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/test_config.c b/src/test/test_config.c index 617a52b8ac..cb88b95761 100644 --- a/src/test/test_config.c +++ b/src/test/test_config.c @@ -5875,6 +5875,7 @@ test_config_include_flag_both_without(void *data) done: tor_free(errmsg); + config_free_all(); } static void @@ -5915,6 +5916,7 @@ test_config_include_flag_torrc_only(void *data) tor_free(errmsg); tor_free(path); tor_free(dir); + config_free_all(); } static void @@ -5955,6 +5957,7 @@ test_config_include_flag_defaults_only(void *data) tor_free(errmsg); tor_free(path); tor_free(dir); + config_free_all(); } static void |