From 14d3ca40d675dbef5feded832b57efea3e9043bd Mon Sep 17 00:00:00 2001 From: Michael Sawyer Date: Thu, 12 Oct 2000 00:14:42 +0000 Subject: [PATCH] Bugfix pullup for Brian --- lib/dns/message.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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) -- 2.47.3