]> git.ipfire.org Git - thirdparty/dhcp.git/blobdiff - omapip/support.c
Merge changes between 3.0rc7 and 3.0rc8pl2.
[thirdparty/dhcp.git] / omapip / support.c
index 6d2e8cc3597d14d2e9c576a01059a7b2a6486c5a..78fd0461ed4d9b33868f5a652eddea2ebe43286f 100644 (file)
@@ -59,6 +59,19 @@ omapi_object_type_t *omapi_object_types;
 int omapi_object_type_count;
 static int ot_max;
 
+#if defined (DEBUG_MEMORY_LEAKAGE_ON_EXIT)
+void omapi_type_relinquish ()
+{
+       omapi_object_type_t *t, *n;
+
+       for (t = omapi_object_types; t; t = n) {
+               n = t -> next;
+               dfree (t, MDL);
+       }
+       omapi_object_types = (omapi_object_type_t *)0;
+}
+#endif
+
 isc_result_t omapi_init (void)
 {
        isc_result_t status;