aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_circuitlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/test_circuitlist.c')
-rw-r--r--src/test/test_circuitlist.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/test/test_circuitlist.c b/src/test/test_circuitlist.c
index b233e99328..e996c42115 100644
--- a/src/test/test_circuitlist.c
+++ b/src/test/test_circuitlist.c
@@ -355,10 +355,8 @@ test_pick_circid(void *arg)
}
done:
- if (chan1)
- circuitmux_free(chan1->cmux);
- if (chan2)
- circuitmux_free(chan2->cmux);
+ circuitmux_free(chan1->cmux);
+ circuitmux_free(chan2->cmux);
tor_free(chan1);
tor_free(chan2);
bitarray_free(ba);