diff options
author | Roger Dingledine <arma@torproject.org> | 2004-09-29 06:52:36 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-09-29 06:52:36 +0000 |
commit | 136d4e573913480491e0c45ffe7ff6450cb107af (patch) | |
tree | 000b359e41d9c491f629831db2fe45af89d4448f /src/or/routerparse.c | |
parent | 6ed095b17769c56d8bd5c92d080e2a839c04b9e5 (diff) | |
download | tor-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/routerparse.c')
-rw-r--r-- | src/or/routerparse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c index 20572545f9..773340dea0 100644 --- a/src/or/routerparse.c +++ b/src/or/routerparse.c @@ -872,7 +872,7 @@ router_parse_exit_policy_from_string(const char *s) err: r = NULL; done: - free(tmp); + tor_free(tmp); token_free(tok); return r; } @@ -1009,7 +1009,7 @@ policy_read_failed: tor_assert(newe->string); log_fn(LOG_WARN,"Couldn't parse line '%s'. Dropping", newe->string); tor_free(newe->string); - free(newe); + tor_free(newe); return NULL; } |