Преглед изворни кода

Minor cleanups in test_config.

Use a more standard indentation style for the end block; remove
redundant if() around tor_free.
Nick Mathewson пре 7 година
родитељ
комит
2f714d60a4
1 измењених фајлова са 4 додато и 7 уклоњено
  1. 4 7
      src/test/test_config.c

+ 4 - 7
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;