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/dirserv.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/dirserv.c')
-rw-r--r-- | src/or/dirserv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c index 067554ffd3..ec4e8d3b01 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -275,7 +275,7 @@ static void free_descriptor_entry(descriptor_entry_t *desc) tor_free(desc->descriptor); tor_free(desc->nickname); routerinfo_free(desc->router); - free(desc); + tor_free(desc); } /** Release all storage that the dirserv is holding for server @@ -594,7 +594,7 @@ dirserv_dump_directory_to_string(char *s, unsigned int maxlen, "running-routers %s\n\n", published, options.RecommendedVersions, cp); - free(cp); + tor_free(cp); i = strlen(s); cp = s+i; @@ -749,7 +749,7 @@ static int dirserv_regenerate_directory(void) tor_cleanup(); exit(0); } - free(new_directory); + tor_free(new_directory); if(get_data_directory(&options)) { snprintf(filename,sizeof(filename),"%s/cached-directory", get_data_directory(&options)); if(write_str_to_file(filename,the_directory,0) < 0) { |