aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuitlist.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-09-29 06:52:36 +0000
committerRoger Dingledine <arma@torproject.org>2004-09-29 06:52:36 +0000
commit136d4e573913480491e0c45ffe7ff6450cb107af (patch)
tree000b359e41d9c491f629831db2fe45af89d4448f /src/or/circuitlist.c
parent6ed095b17769c56d8bd5c92d080e2a839c04b9e5 (diff)
downloadtor-136d4e573913480491e0c45ffe7ff6450cb107af.tar
tor-136d4e573913480491e0c45ffe7ff6450cb107af.tar.gz
prefer tor_free to free
plus complain more loudly when we fail to parse a dir we just fetched svn:r2401
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 8c40b53ec..f66a4b990 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: