[tor/master] Minor cleanups in test_config.

commit 2f714d60a461950a51481e8963df082bab070cf8 Author: Nick Mathewson <nickm@torproject.org> Date: Tue May 9 08:20:14 2017 -0400 Minor cleanups in test_config. Use a more standard indentation style for the end block; remove redundant if() around tor_free. --- src/test/test_config.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/test/test_config.c b/src/test/test_config.c index 8dc9fb0..d27f072 100644 --- a/src/test/test_config.c +++ b/src/test/test_config.c @@ -899,13 +899,10 @@ test_config_fix_my_family(void *arg) } tt_int_op(ret_size, OP_EQ, 5); - done: - if (err != NULL) { - tor_free(err); - } - - or_options_free(options); - or_options_free(defaults); + done: + tor_free(err); + or_options_free(options); + or_options_free(defaults); } static int n_hostname_01010101 = 0;
participants (1)
-
nickm@torproject.org