summaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
Diffstat (limited to 'src/or')
-rw-r--r--src/or/rendcache.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/or/rendcache.c b/src/or/rendcache.c
index deb2fea4de..ef7d182026 100644
--- a/src/or/rendcache.c
+++ b/src/or/rendcache.c
@@ -127,6 +127,12 @@ rend_cache_failure_intro_entry_free(rend_cache_failure_intro_t *entry)
tor_free(entry);
}
+static void
+rend_cache_failure_intro_entry_free_(void *entry)
+{
+ rend_cache_failure_intro_entry_free_(entry);
+}
+
/** Allocate a rend cache failure intro object and return it. <b>failure</b>
* is set into the object. This function can not fail. */
STATIC rend_cache_failure_intro_t *
@@ -147,11 +153,9 @@ rend_cache_failure_entry_free(rend_cache_failure_t *entry)
}
/* Free and remove every intro failure object. */
- DIGESTMAP_FOREACH_MODIFY(entry->intro_failures, key,
- rend_cache_failure_intro_t *, e) {
- rend_cache_failure_intro_entry_free(e);
- MAP_DEL_CURRENT(key);
- } DIGESTMAP_FOREACH_END;
+ digestmap_free(entry->intro_failures,
+ rend_cache_failure_intro_entry_free_);
+
tor_free(entry);
}