aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_circuitlist.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-09-09 15:29:57 -0400
committerNick Mathewson <nickm@torproject.org>2016-09-09 15:29:57 -0400
commit75a7997148c55515a5d1c029a0ab5b46341a4e18 (patch)
tree4f924ebffc40392028686df2273915771e6f7aa6 /src/test/test_circuitlist.c
parent4c55e8a58f41933e76bcb309206c98e7b5a1d834 (diff)
downloadtor-75a7997148c55515a5d1c029a0ab5b46341a4e18.tar.gz
tor-75a7997148c55515a5d1c029a0ab5b46341a4e18.zip
Fix a coupole of coverity complaints.
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);