aboutsummaryrefslogtreecommitdiff
path: root/src/or/rendcache.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-10-21 10:54:12 -0400
committerNick Mathewson <nickm@torproject.org>2015-10-21 10:54:12 -0400
commitd14b009b23ed2398ddc805211f322c3fa5843d04 (patch)
treee0a6177826d91c8259b839850079ebc0702aa93f /src/or/rendcache.c
parent8b01849f3bce1beaf2f08f2c0b94feabda0f5978 (diff)
parentaa96abe66b7ac507e927d4cfe37d78eaf754179e (diff)
downloadtor-d14b009b23ed2398ddc805211f322c3fa5843d04.tar.gz
tor-d14b009b23ed2398ddc805211f322c3fa5843d04.zip
Merge remote-tracking branch 'origin/maint-0.2.7'
Diffstat (limited to 'src/or/rendcache.c')
-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);
}