From ac3411d72baf2628ee241e2c9111260fb3cd5c88 Mon Sep 17 00:00:00 2001 From: Martin Nagy Date: Wed, 14 Jan 2009 09:23:35 +0100 Subject: Don't call dlclose() on exit. Because the allocations in the dynamic drivers pass constants to the isc_mem_get() and isc_mem_put(), any memory leak might result in a crash when BIND is exiting and checking for memory that wasn't freed. --- lib/dns/dynamic_db.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib') diff --git a/lib/dns/dynamic_db.c b/lib/dns/dynamic_db.c index b299b84..776e670 100644 --- a/lib/dns/dynamic_db.c +++ b/lib/dns/dynamic_db.c @@ -155,8 +155,6 @@ unload_library(dyndb_implementation_t **impp) imp = *impp; - dlclose(imp->handle); - isc_mem_putanddetach(&imp->mctx, imp, sizeof(dyndb_implementation_t)); *impp = NULL; -- cgit