From dd8e07322b91fbf606b792a9f2936b0141fda9b2 Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Tue, 17 Oct 2000 18:34:52 +0000 Subject: [PATCH] An event could be freed twice. --- bin/named/lwdgnba.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/named/lwdgnba.c b/bin/named/lwdgnba.c index fda1bf4a8a..45bcfe44f4 100644 --- a/bin/named/lwdgnba.c +++ b/bin/named/lwdgnba.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: lwdgnba.c,v 1.7 2000/10/12 20:45:17 bwelling Exp $ */ +/* $Id: lwdgnba.c,v 1.8 2000/10/17 18:34:52 bwelling Exp $ */ #include @@ -168,7 +168,8 @@ byaddr_done(isc_task_t *task, isc_event_t *event) { lwres_context_freemem(cm->lwctx, lwb.base, lwb.length); - isc_event_free(&event); + if (event != NULL) + isc_event_free(&event); } static void