From 1afae09da4911dabe285ae60ca61ddd50d5c443c Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Wed, 6 Dec 2000 23:39:04 +0000 Subject: [PATCH] redundant code --- lib/isc/mem.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/isc/mem.c b/lib/isc/mem.c index 40ce078819..62b94514a9 100644 --- a/lib/isc/mem.c +++ b/lib/isc/mem.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: mem.c,v 1.71 2000/12/06 20:34:34 tale Exp $ */ +/* $Id: mem.c,v 1.72 2000/12/06 23:39:04 bwelling Exp $ */ #include @@ -846,7 +846,6 @@ isc__mem_putanddetach(isc_mem_t **ctxp, void *ptr, size_t size FLARG) { void isc_mem_destroy(isc_mem_t **ctxp) { isc_mem_t *ctx; - isc_boolean_t want_destroy = ISC_FALSE; /* * This routine provides legacy support for callers who use mctxs @@ -860,12 +859,9 @@ isc_mem_destroy(isc_mem_t **ctxp) { LOCK(&ctx->lock); REQUIRE(ctx->references == 1); ctx->references--; - if (ctx->references == 0) - want_destroy = ISC_TRUE; UNLOCK(&ctx->lock); - if (want_destroy) - destroy(ctx); + destroy(ctx); *ctxp = NULL; }