}
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);
done:
tor_free(cell);
- cell_queue_clear(&orcirc->base_.n_chan_cells);
- cell_queue_clear(&orcirc->p_chan_cells);
if (orcirc) {
circuitmux_detach_circuit(nchan->cmux, TO_CIRCUIT(orcirc));
circuitmux_detach_circuit(pchan->cmux, TO_CIRCUIT(orcirc));
+ cell_queue_clear(&orcirc->base_.n_chan_cells);
+ cell_queue_clear(&orcirc->p_chan_cells);
}
tor_free(orcirc);
free_fake_channel(nchan);