mirror of
https://github.com/isc-projects/bind9.git
synced 2026-03-18 08:32:17 -04:00
isc_mem_debugging cleanup
This commit is contained in:
parent
5f6b0ea19a
commit
bf9163715d
2 changed files with 4 additions and 5 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue