diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-11-17 11:46:25 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-11-17 12:01:19 -0500 |
commit | 94db8f32e46925c3a64def751e5d2efbddbdf417 (patch) | |
tree | 8439c65932841c498624b3c1e7c7db9994672a34 /src/or/routerlist.c | |
parent | c1bdb80aba64ac378784840d231b0db098c05474 (diff) | |
download | tor-94db8f32e46925c3a64def751e5d2efbddbdf417.tar.gz tor-94db8f32e46925c3a64def751e5d2efbddbdf417.zip |
Make all the free() functions from container.h clear their targets
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r-- | src/or/routerlist.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index fb8225e0d6..50d5cc1abc 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -143,6 +143,10 @@ DECLARE_TYPED_DIGESTMAP_FNS(dsmap_, digest_ds_map_t, download_status_t) #define DSMAP_FOREACH(map, keyvar, valvar) \ DIGESTMAP_FOREACH(dsmap_to_digestmap(map), keyvar, download_status_t *, \ valvar) +#define eimap_free(map, fn) MAP_FREE_AND_NULL(eimap, (map), (fn)) +#define rimap_free(map, fn) MAP_FREE_AND_NULL(rimap, (map), (fn)) +#define dsmap_free(map, fn) MAP_FREE_AND_NULL(dsmap, (map), (fn)) +#define sdmap_free(map, fn) MAP_FREE_AND_NULL(sdmap, (map), (fn)) /* Forward declaration for cert_list_t */ typedef struct cert_list_t cert_list_t; |