From: Aram Sargsyan Date: Mon, 15 Aug 2022 11:40:21 +0000 (+0000) Subject: Fix tkey.c:buildquery() function's error handling X-Git-Tag: v9.19.5~38^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d38931f39775316650effb42a26080616ca4ad53;p=thirdparty%2Fbind9.git Fix tkey.c:buildquery() function's error handling Add the missing cleanup code. --- diff --git a/lib/dns/tkey.c b/lib/dns/tkey.c index 366862346da..a46ac788782 100644 --- a/lib/dns/tkey.c +++ b/lib/dns/tkey.c @@ -997,6 +997,9 @@ failure: if (dynbuf != NULL) { isc_buffer_free(&dynbuf); } + if (rdata != NULL) { + dns_message_puttemprdata(msg, &rdata); + } return (result); }