aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_dir.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-11-17 11:46:25 -0500
committerNick Mathewson <nickm@torproject.org>2017-11-17 12:01:19 -0500
commit94db8f32e46925c3a64def751e5d2efbddbdf417 (patch)
tree8439c65932841c498624b3c1e7c7db9994672a34 /src/test/test_dir.c
parentc1bdb80aba64ac378784840d231b0db098c05474 (diff)
downloadtor-94db8f32e46925c3a64def751e5d2efbddbdf417.tar.gz
tor-94db8f32e46925c3a64def751e5d2efbddbdf417.zip
Make all the free() functions from container.h clear their targets
Diffstat (limited to 'src/test/test_dir.c')
-rw-r--r--src/test/test_dir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test_dir.c b/src/test/test_dir.c
index ee4a9780b1..4cab307ce1 100644
--- a/src/test/test_dir.c
+++ b/src/test/test_dir.c
@@ -664,7 +664,7 @@ test_dir_extrainfo_parsing(void *arg)
escaped(NULL);
extrainfo_free(ei);
routerinfo_free(ri);
- digestmap_free((digestmap_t*)map, routerinfo_free_wrapper_);
+ digestmap_free_((digestmap_t*)map, routerinfo_free_wrapper_);
}
static void
@@ -760,7 +760,7 @@ test_dir_parse_router_list(void *arg)
smartlist_free(chunks);
routerinfo_free(ri);
if (map) {
- digestmap_free((digestmap_t*)map, routerinfo_free_wrapper_);
+ digestmap_free_((digestmap_t*)map, routerinfo_free_wrapper_);
router_get_routerlist()->identity_map =
(struct digest_ri_map_t*)digestmap_new();
}