]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
An event could be freed twice.
authorBrian Wellington <source@isc.org>
Tue, 17 Oct 2000 18:34:52 +0000 (18:34 +0000)
committerBrian Wellington <source@isc.org>
Tue, 17 Oct 2000 18:34:52 +0000 (18:34 +0000)
bin/named/lwdgnba.c

index fda1bf4a8a312cdd0c14b81c05f2f28d1cdbf8d3..45bcfe44f45838a0d9fb2c35def85db285b44c78 100644 (file)
@@ -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 <config.h>
 
@@ -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