aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuitlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/circuitlist.c')
-rw-r--r--src/or/circuitlist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c
index 8c40b53eca..f66a4b9900 100644
--- a/src/or/circuitlist.c
+++ b/src/or/circuitlist.c
@@ -124,7 +124,7 @@ static void circuit_free(circuit_t *circ) {
}
memset(circ, 0xAA, sizeof(circuit_t)); /* poison memory */
- free(circ);
+ tor_free(circ);
}
/** Deallocate space associated with the linked list <b>cpath</b>. */
@@ -158,7 +158,7 @@ void circuit_free_cpath_node(crypt_path_t *victim) {
crypto_free_digest_env(victim->b_digest);
if(victim->handshake_state)
crypto_dh_free(victim->handshake_state);
- free(victim);
+ tor_free(victim);
}
/** Return a circ such that: