aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_config.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-05-09 08:20:14 -0400
committerNick Mathewson <nickm@torproject.org>2017-05-09 08:20:14 -0400
commit2f714d60a461950a51481e8963df082bab070cf8 (patch)
tree1626ac74c5d8e65093c9fd9cc6e82ece39aeaaa6 /src/test/test_config.c
parentb8abedfeeee3e8d15d952578abb102fbcc56ea04 (diff)
downloadtor-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.c11
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;