diff options
Diffstat (limited to 'src/or/onion.c')
-rw-r--r-- | src/or/onion.c | 4 |
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); } /*----------------------------------------------------------------------*/ |