aboutsummaryrefslogtreecommitdiff
path: root/src/or/onion.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/onion.c
parent6ed095b17769c56d8bd5c92d080e2a839c04b9e5 (diff)
downloadtor-136d4e573913480491e0c45ffe7ff6450cb107af.tar.gz
tor-136d4e573913480491e0c45ffe7ff6450cb107af.zip
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/onion.c')
-rw-r--r--src/or/onion.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/onion.c b/src/or/onion.c
index 8cf0073540..39deae2db7 100644
--- a/src/or/onion.c
+++ b/src/or/onion.c
@@ -47,7 +47,7 @@ int onion_pending_add(circuit_t *circ) {
if(ol_length >= options.MaxOnionsPending) {
log_fn(LOG_WARN,"Already have %d onions queued. Closing.", ol_length);
- free(tmp);
+ tor_free(tmp);
return -1;
}
@@ -109,7 +109,7 @@ void onion_pending_remove(circuit_t *circ) {
/* now victim points to the element that needs to be removed */
- free(victim);
+ tor_free(victim);
}
/*----------------------------------------------------------------------*/