mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 13:43:47 +01:00
Fix small memory leak in config include tests
Tests that used options_init_from_string were not freeing calling config_free_all().
This commit is contained in:
parent
49dab42782
commit
3c70f26dc0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user