|  | @@ -158,9 +158,11 @@ circuit_set_p_circid_orconn(or_circuit_t *circ, uint16_t id,
 | 
	
		
			
				|  |  |                              or_connection_t *conn)
 | 
	
		
			
				|  |  |  {
 | 
	
		
			
				|  |  |    int active;
 | 
	
		
			
				|  |  | +  int active;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |    active = circ->p_conn_cells.n > 0;
 | 
	
		
			
				|  |  |    tor_assert(bool_eq(active, circ->next_active_on_p_conn));
 | 
	
		
			
				|  |  | +  active = circ->p_conn_cells.n > 0;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |    circuit_set_circid_orconn_helper(TO_CIRCUIT(circ), CELL_DIRECTION_IN,
 | 
	
		
			
				|  |  |                                     id, conn, active);
 | 
	
	
		
			
				|  | @@ -177,9 +179,11 @@ circuit_set_n_circid_orconn(circuit_t *circ, uint16_t id,
 | 
	
		
			
				|  |  |                              or_connection_t *conn)
 | 
	
		
			
				|  |  |  {
 | 
	
		
			
				|  |  |    int active;
 | 
	
		
			
				|  |  | +  int active;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |    active = circ->n_conn_cells.n > 0;
 | 
	
		
			
				|  |  |    tor_assert(bool_eq(active, circ->next_active_on_n_conn));
 | 
	
		
			
				|  |  | +  active = circ->n_conn_cells.n > 0;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |    circuit_set_circid_orconn_helper(circ, CELL_DIRECTION_OUT,
 | 
	
		
			
				|  |  |                                     id, conn, active);
 | 
	
	
		
			
				|  | @@ -410,6 +414,8 @@ circuit_free(circuit_t *circ)
 | 
	
		
			
				|  |  |        other->rend_splice = NULL;
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +    cell_queue_clear(ô->p_conn_cells);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      tor_free(circ->onionskin);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      /* remove from map. */
 | 
	
	
		
			
				|  | @@ -420,6 +426,8 @@ circuit_free(circuit_t *circ)
 | 
	
		
			
				|  |  |      cell_queue_clear(ô->p_conn_cells);
 | 
	
		
			
				|  |  |    }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +  cell_queue_clear(&circ->n_conn_cells);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |    /* Remove from map. */
 | 
	
		
			
				|  |  |    circuit_set_n_circid_orconn(circ, 0, NULL);
 | 
	
		
			
				|  |  |  
 |