summaryrefslogtreecommitdiffstats
path: root/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'util.h')
-rw-r--r--util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/util.h b/util.h
index 5b40a33..6c46516 100644
--- a/util.h
+++ b/util.h
@@ -58,4 +58,8 @@
#define SAFE_MEM_PUT_PTR(m, target_ptr) \
SAFE_MEM_PUT((m), (target_ptr), sizeof(*(target_ptr)))
+#define MEM_PUT_AND_DETACH(target_ptr) \
+ isc_mem_putanddetach(&(target_ptr)->mctx, target_ptr, \
+ sizeof(*(target_ptr)))
+
#endif /* !_LD_UTIL_H_ */