aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-12-21 10:39:29 -0500
committerNick Mathewson <nickm@torproject.org>2017-12-21 10:39:29 -0500
commitcd1f708a7f44ab305c9fcda0060f55f075b98362 (patch)
treef238d03dcde120ee5a627e31f5c630681155a710
parent520cf21793e9c6b662c76c02235315f898d10fb9 (diff)
downloadtor-cd1f708a7f44ab305c9fcda0060f55f075b98362.tar.gz
tor-cd1f708a7f44ab305c9fcda0060f55f075b98362.zip
Move free to end of test function so coverity won't complain.
-rw-r--r--src/test/test_circuitmux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_circuitmux.c b/src/test/test_circuitmux.c
index 130be6fc99..d6b658c27f 100644
--- a/src/test/test_circuitmux.c
+++ b/src/test/test_circuitmux.c
@@ -67,7 +67,6 @@ test_cmux_destroy_cell_queue(void *arg)
dc = destroy_cell_queue_pop(cq);
tt_assert(dc);
tt_uint_op(dc->circid, ==, 100);
- tor_free(dc);
tt_int_op(circuitmux_num_cells(cmux), ==, 2);
@@ -75,6 +74,7 @@ test_cmux_destroy_cell_queue(void *arg)
circuitmux_free(cmux);
channel_free(ch);
packed_cell_free(pc);
+ tor_free(dc);
#ifdef ENABLE_MEMPOOLS
free_cell_pool();