]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix tkey.c:buildquery() function's error handling
authorAram Sargsyan <aram@isc.org>
Mon, 15 Aug 2022 11:40:21 +0000 (11:40 +0000)
committerAram Sargsyan <aram@isc.org>
Mon, 15 Aug 2022 11:44:53 +0000 (11:44 +0000)
Add the missing cleanup code.

lib/dns/tkey.c

index 366862346da62ab310f8023a71925aa86caf1d6b..a46ac788782809cb54498b7cbb202f63ee684168 100644 (file)
@@ -997,6 +997,9 @@ failure:
        if (dynbuf != NULL) {
                isc_buffer_free(&dynbuf);
        }
+       if (rdata != NULL) {
+               dns_message_puttemprdata(msg, &rdata);
+       }
        return (result);
 }