mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
isc_mem_debugging cleanup
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* 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
|
||||
@@ -104,7 +104,6 @@ dns_tsigkey_t *key = NULL;
|
||||
isc_boolean_t validated = ISC_TRUE;
|
||||
isc_entropy_t *entp = NULL;
|
||||
isc_mempool_t *commctx = NULL;
|
||||
extern isc_boolean_t isc_mem_debugging;
|
||||
isc_boolean_t debugging = ISC_FALSE;
|
||||
char *progname = NULL;
|
||||
isc_mutex_t lookup_lock;
|
||||
@@ -2419,7 +2418,7 @@ destroy_libs(void) {
|
||||
}
|
||||
|
||||
isc_mutex_destroy(&lookup_lock);
|
||||
if (isc_mem_debugging)
|
||||
if (isc_mem_debugging != 0)
|
||||
isc_mem_stats(mctx, stderr);
|
||||
if (mctx != NULL)
|
||||
isc_mem_destroy(&mctx);
|
||||
|
@@ -15,7 +15,7 @@
|
||||
* 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>
|
||||
|
||||
@@ -907,7 +907,7 @@ main(int argc, char **argv) {
|
||||
debug ("freeing taskmgr");
|
||||
isc_taskmgr_destroy(&taskmgr);
|
||||
}
|
||||
if (isc_mem_debugging)
|
||||
if (isc_mem_debugging != 0)
|
||||
isc_mem_stats(mctx, stderr);
|
||||
isc_app_finish();
|
||||
if (mctx != NULL)
|
||||
|
Reference in New Issue
Block a user