aboutsummaryrefslogtreecommitdiff
path: root/src/or/onion.c
diff options
context:
space:
mode:
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 f0bf9aacc..90963a97a 100644
--- a/src/or/onion.c
+++ b/src/or/onion.c
@@ -222,7 +222,7 @@ static unsigned int *new_route(double cw, routerinfo_t **rarray, int rarray_len,
for(i=0;i<*routelen;i++) {
// log_fn(LOG_DEBUG,"Choosing hop %u.",i);
if (CRYPTO_PSEUDO_RAND_INT(choice)) {
- free((void *)route);
+ free(route);
return NULL;
}
@@ -432,7 +432,7 @@ onion_skin_create(crypto_pk_env_t *dest_router_key,
return 0;
err:
- if (pubkey) free(pubkey);
+ tor_free(pubkey);
if (dh) crypto_dh_free(dh);
if (cipher) crypto_free_cipher_env(cipher);
return -1;