tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 3c70f26dc07cea98e009dc8b15009ca8e72ba226
parent 49dab42782e06e51c218cf40b8cbb98b80d9803f
Author: Daniel Pinto <danielpinto52@gmail.com>
Date:   Wed,  3 Jun 2020 22:09:54 +0100

Fix small memory leak in config include tests

Tests that used options_init_from_string were not freeing calling
config_free_all().

Diffstat:
Msrc/test/test_config.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git 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