From: Brian Wellington Date: Tue, 17 Oct 2000 18:34:52 +0000 (+0000) Subject: An event could be freed twice. X-Git-Tag: v9.0.1^4~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd8e07322b91fbf606b792a9f2936b0141fda9b2;p=thirdparty%2Fbind9.git An event could be freed twice. --- diff --git a/bin/named/lwdgnba.c b/bin/named/lwdgnba.c index fda1bf4a8a3..45bcfe44f45 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