diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-05-09 08:20:14 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-05-09 08:20:14 -0400 |
commit | 2f714d60a461950a51481e8963df082bab070cf8 (patch) | |
tree | 1626ac74c5d8e65093c9fd9cc6e82ece39aeaaa6 /src/test/test_config.c | |
parent | b8abedfeeee3e8d15d952578abb102fbcc56ea04 (diff) | |
download | tor-2f714d60a461950a51481e8963df082bab070cf8.tar.gz tor-2f714d60a461950a51481e8963df082bab070cf8.zip |
Minor cleanups in test_config.
Use a more standard indentation style for the end block; remove
redundant if() around tor_free.
Diffstat (limited to 'src/test/test_config.c')
-rw-r--r-- | src/test/test_config.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/test/test_config.c b/src/test/test_config.c index 8dc9fb032e..d27f07226b 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; |