From 136d4e573913480491e0c45ffe7ff6450cb107af Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Wed, 29 Sep 2004 06:52:36 +0000 Subject: prefer tor_free to free plus complain more loudly when we fail to parse a dir we just fetched svn:r2401 --- src/or/circuitlist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/or/circuitlist.c') 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 cpath. */ @@ -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: -- cgit v1.2.3-54-g00ecf