summaryrefslogtreecommitdiff
path: root/omapip
diff options
context:
space:
mode:
authorTed Lemon <source@isc.org>2000-07-05 07:29:56 +0000
committerTed Lemon <source@isc.org>2000-07-05 07:29:56 +0000
commit7cec271f9a68b39eca029e64eaf461736310b241 (patch)
tree541e069271a975a6aea3c980d5b0e32f56f0f4e7 /omapip
parent233b79e154b2f2f179dc55c990fd9b1a8d5a91f1 (diff)
downloadisc-dhcp-7cec271f9a68b39eca029e64eaf461736310b241.tar.gz
Use object free routine if provided.
Diffstat (limited to 'omapip')
-rw-r--r--omapip/alloc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/omapip/alloc.c b/omapip/alloc.c
index 11b8ecd3..45894935 100644
--- a/omapip/alloc.c
+++ b/omapip/alloc.c
@@ -473,7 +473,10 @@ isc_result_t omapi_object_dereference (omapi_object_t **h,
rc_register (file, line, h, *h, 0);
if ((*h) -> type -> destroy)
(*((*h) -> type -> destroy)) (*h, file, line);
- dfree (*h, file, line);
+ if ((*h) -> type -> freer)
+ ((*h) -> type -> freer (*h, file, line));
+ else
+ dfree (*h, file, line);
}
} else {
(*h) -> refcnt--;