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/common/container.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/common/container.c')
-rw-r--r-- | src/common/container.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/container.c b/src/common/container.c index 8645cb4826..a6e3c11f35 100644 --- a/src/common/container.c +++ b/src/common/container.c @@ -42,7 +42,7 @@ smartlist_new,(void)) * list's elements. */ MOCK_IMPL(void, -smartlist_free,(smartlist_t *sl)) +smartlist_free_,(smartlist_t *sl)) { if (!sl) return; @@ -1335,7 +1335,7 @@ digest256map_assign_key(digest256map_entry_t *ent, const uint8_t *key) * those entries. If free_val is provided, invoked it every value in \ * <b>map</b>. */ \ MOCK_IMPL(void, \ - prefix##_free, (maptype *map, void (*free_val)(void*))) \ + prefix##_free_, (maptype *map, void (*free_val)(void*))) \ { \ prefix##_entry_t **ent, **next, *this; \ if (!map) \ @@ -1525,7 +1525,7 @@ digestset_new(int max_elements) /** Free all storage held in <b>set</b>. */ void -digestset_free(digestset_t *set) +digestset_free_(digestset_t *set) { if (!set) return; |