diff --git a/lib/dns/tkey.c b/lib/dns/tkey.c index 366862346d..a46ac78878 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); }