From: Michael Sawyer Date: Thu, 12 Oct 2000 00:14:42 +0000 (+0000) Subject: Bugfix pullup for Brian X-Git-Tag: v9.0.0^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14d3ca40d675dbef5feded832b57efea3e9043bd;p=thirdparty%2Fbind9.git Bugfix pullup for Brian --- diff --git a/lib/dns/message.c b/lib/dns/message.c index a62732d21f9..8f7ba8cbc99 100644 --- a/lib/dns/message.c +++ b/lib/dns/message.c @@ -15,7 +15,7 @@ * SOFTWARE. */ -/* $Id: message.c,v 1.131.2.8 2000/09/11 17:56:07 gson Exp $ */ +/* $Id: message.c,v 1.131.2.9 2000/10/12 00:14:42 mws Exp $ */ /*** *** Imports @@ -704,8 +704,10 @@ dns_message_create(isc_mem_t *mctx, unsigned int intent, dns_message_t **msgp) if (msgblock != NULL) msgblock_free(mctx, msgblock, sizeof(dns_rdata_t)); dynbuf = ISC_LIST_HEAD(m->scratchpad); - if (dynbuf != NULL) + if (dynbuf != NULL) { + ISC_LIST_UNLINK(m->scratchpad, dynbuf, link); isc_buffer_free(&dynbuf); + } if (m->namepool != NULL) isc_mempool_destroy(&m->namepool); if (m->rdspool != NULL)