As we can't check the deallocations done in the library memory contexts
by default because it would always fail on non-clean exit (that happens
on error or by calling exit() early), we just want to enable the checks
to be done on normal exit.
$(LIBISCCFG_CFLAGS) \
$(LIBIRS_CFLAGS) \
$(LIBBIND9_CFLAGS) \
- $(LIBIDN2_CFLAGS)
+ $(LIBIDN2_CFLAGS) \
+ $(LIBUV_CFLAGS)
LDADD += \
libdighost.la \
#include <isc/string.h>
#include <isc/task.h>
#include <isc/timer.h>
+#include <isc/tls.h>
#include <isc/types.h>
#include <isc/util.h>
+#include <isc/uv.h>
+#include <isc/xml.h>
#include <dns/byaddr.h>
#include <dns/fixedname.h>
}
isc_managers_destroy(&mctx, &loopmgr, &netmgr, &taskmgr);
+
+ isc__tls_setdestroycheck(true);
+ isc__uv_setdestroycheck(true);
+ isc__xml_setdestroycheck(true);
+
+ isc_mem_checkdestroyed(stderr);
}
#ifdef HAVE_LIBIDN2
&named_g_taskmgr);
isc_mem_checkdestroyed(stderr);
+ isc__tls_setdestroycheck(true);
+ isc__uv_setdestroycheck(true);
+ isc__xml_setdestroycheck(true);
+
named_main_setmemstats(NULL);
named_os_closedevnull();