summaryrefslogtreecommitdiff
path: root/util/alloc.h
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2018-09-10 16:30:18 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2018-09-10 16:30:18 +0000
commit7b6fdf425a9ef38fe9e16779b3af25863104d9c0 (patch)
tree1ac9dd11604f49ca6a2feae373ff4dc7e6fb0002 /util/alloc.h
parent4289761a7b61df4b64c11ada446a187df61e6a1e (diff)
Diffstat (limited to 'util/alloc.h')
-rw-r--r--util/alloc.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/util/alloc.h b/util/alloc.h
index 9839a45501756..ee03b074e39d4 100644
--- a/util/alloc.h
+++ b/util/alloc.h
@@ -116,6 +116,14 @@ void alloc_init(struct alloc_cache* alloc, struct alloc_cache* super,
void alloc_clear(struct alloc_cache* alloc);
/**
+ * Free the special alloced items. The rrset and message caches must be
+ * empty, there must be no more references to rrset pointers into the
+ * rrset cache.
+ * @param alloc: the special allocs are freed.
+ */
+void alloc_clear_special(struct alloc_cache* alloc);
+
+/**
* Get a new special_type element.
* @param alloc: where to alloc it.
* @return: memory block. Will not return NULL (instead fatal_exit).