]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
pullup:
authorAndreas Gustafsson <source@isc.org>
Tue, 17 Oct 2000 18:40:10 +0000 (18:40 +0000)
committerAndreas Gustafsson <source@isc.org>
Tue, 17 Oct 2000 18:40:10 +0000 (18:40 +0000)
An event could be freed twice.
cvs commit -mpullup:

bin/named/lwdgnba.c

index 165313b8bdc1a5bd58f61d4e94f1127254ffa10a..0b5b465a2a101cba8125ffa39f8881346df8d411 100644 (file)
@@ -15,7 +15,7 @@
  * SOFTWARE.
  */
 
-/* $Id: lwdgnba.c,v 1.3.2.1 2000/06/26 21:47:35 gson Exp $ */
+/* $Id: lwdgnba.c,v 1.3.2.2 2000/10/17 18:40:10 gson Exp $ */
 
 #include <config.h>
 
@@ -170,7 +170,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