mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 15:05:23 +00:00
isc_mem_debugging cleanup
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: dighost.c,v 1.102 2000/07/27 19:06:10 mws Exp $ */
|
/* $Id: dighost.c,v 1.103 2000/07/27 23:52:29 bwelling Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Notice to programmers: Do not use this code as an example of how to
|
* Notice to programmers: Do not use this code as an example of how to
|
||||||
@@ -104,7 +104,6 @@ dns_tsigkey_t *key = NULL;
|
|||||||
isc_boolean_t validated = ISC_TRUE;
|
isc_boolean_t validated = ISC_TRUE;
|
||||||
isc_entropy_t *entp = NULL;
|
isc_entropy_t *entp = NULL;
|
||||||
isc_mempool_t *commctx = NULL;
|
isc_mempool_t *commctx = NULL;
|
||||||
extern isc_boolean_t isc_mem_debugging;
|
|
||||||
isc_boolean_t debugging = ISC_FALSE;
|
isc_boolean_t debugging = ISC_FALSE;
|
||||||
char *progname = NULL;
|
char *progname = NULL;
|
||||||
isc_mutex_t lookup_lock;
|
isc_mutex_t lookup_lock;
|
||||||
@@ -2419,7 +2418,7 @@ destroy_libs(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
isc_mutex_destroy(&lookup_lock);
|
isc_mutex_destroy(&lookup_lock);
|
||||||
if (isc_mem_debugging)
|
if (isc_mem_debugging != 0)
|
||||||
isc_mem_stats(mctx, stderr);
|
isc_mem_stats(mctx, stderr);
|
||||||
if (mctx != NULL)
|
if (mctx != NULL)
|
||||||
isc_mem_destroy(&mctx);
|
isc_mem_destroy(&mctx);
|
||||||
|
@@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: nslookup.c,v 1.27 2000/07/27 09:36:30 tale Exp $ */
|
/* $Id: nslookup.c,v 1.28 2000/07/27 23:52:30 bwelling Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
@@ -907,7 +907,7 @@ main(int argc, char **argv) {
|
|||||||
debug ("freeing taskmgr");
|
debug ("freeing taskmgr");
|
||||||
isc_taskmgr_destroy(&taskmgr);
|
isc_taskmgr_destroy(&taskmgr);
|
||||||
}
|
}
|
||||||
if (isc_mem_debugging)
|
if (isc_mem_debugging != 0)
|
||||||
isc_mem_stats(mctx, stderr);
|
isc_mem_stats(mctx, stderr);
|
||||||
isc_app_finish();
|
isc_app_finish();
|
||||||
if (mctx != NULL)
|
if (mctx != NULL)
|
||||||
|
Reference in New Issue
Block a user