]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Use object free routine if provided.
authorTed Lemon <source@isc.org>
Wed, 5 Jul 2000 07:29:56 +0000 (07:29 +0000)
committerTed Lemon <source@isc.org>
Wed, 5 Jul 2000 07:29:56 +0000 (07:29 +0000)
omapip/alloc.c

index 11b8ecd3eeaca3071af4c5a0a966482e7863fbf5..458949352fc9a4b74bd0cdf1b880cbe880d787c2 100644 (file)
@@ -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--;