From d38931f39775316650effb42a26080616ca4ad53 Mon Sep 17 00:00:00 2001 From: Aram Sargsyan Date: Mon, 15 Aug 2022 11:40:21 +0000 Subject: [PATCH] Fix tkey.c:buildquery() function's error handling Add the missing cleanup code. --- lib/dns/tkey.c | 3 +++ 1 file changed, 3 insertions(+) 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); }