From ba87f5bb25cd001ab8560f23a88e60a504c7059a Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 28 Mar 2016 20:09:09 -0400 Subject: Fix my dumb unreleased bug in 18673 --- src/or/circuitlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/or/circuitlist.c') diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c index 670c5b3c19..1efb7ef4d0 100644 --- a/src/or/circuitlist.c +++ b/src/or/circuitlist.c @@ -760,7 +760,7 @@ or_circuit_new(circid_t p_circ_id, channel_t *p_chan) void circuit_clear_testing_cell_stats(circuit_t *circ) { - if (!circ) + if (!circ || !circ->testing_cell_stats) return; SMARTLIST_FOREACH(circ->testing_cell_stats, testing_cell_stats_entry_t *, ent, tor_free(ent)); -- cgit v1.2.3-54-g00ecf