diff options
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) { |