diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-02-10 23:18:39 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-02-10 23:18:39 +0000 |
commit | 60f234f42b63ed6a5208c70bbc4c32e532cc903d (patch) | |
tree | aaa4aa5ea631dafadb38afd28c3030a4b54f20c7 /src/or/rephist.c | |
parent | df41b20e90c5f817b0c8c7ba913cdadea3c671fe (diff) | |
download | tor-60f234f42b63ed6a5208c70bbc4c32e532cc903d.tar.gz tor-60f234f42b63ed6a5208c70bbc4c32e532cc903d.zip |
Add more functions to free things to help dmalloc allong.
svn:r3613
Diffstat (limited to 'src/or/rephist.c')
-rw-r--r-- | src/or/rephist.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/rephist.c b/src/or/rephist.c index 4537032803..4076638153 100644 --- a/src/or/rephist.c +++ b/src/or/rephist.c @@ -730,3 +730,9 @@ int rep_hist_get_predicted_hidserv(time_t now, int *need_uptime, int *need_capac void rep_hist_note_used_resolve(time_t now) { } int rep_hist_get_predicted_resolve(time_t now) { return 0; } +void rep_hist_free_all(void) +{ + strmap_free(history_map, free_or_history); + tor_free(read_array); + tor_free(write_array); +} |