summaryrefslogtreecommitdiff
path: root/omapip/alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'omapip/alloc.c')
-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--;