aboutsummaryrefslogtreecommitdiff
path: root/src/or/routerlist.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/routerlist.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/routerlist.c')
-rw-r--r--src/or/routerlist.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 63a72d1ca..7f8261595 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -540,7 +540,7 @@ void routerinfo_free(routerinfo_t *router)
if (router->identity_pkey)
crypto_free_pk_env(router->identity_pkey);
exit_policy_free(router->exit_policy);
- free(router);
+ tor_free(router);
}
/** Allocate a fresh copy of <b>router</b> */
@@ -717,12 +717,12 @@ int router_load_routerlist_from_file(char *routerfile, int trusted)
if(router_load_routerlist_from_string(string, trusted) < 0) {
log_fn(LOG_WARN,"The routerfile itself was corrupt.");
- free(string);
+ tor_free(string);
return -1;
}
/* dump_onion_keys(LOG_NOTICE); */
- free(string);
+ tor_free(string);
return 0;
}