]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
don't attempt to call isc_buffer_free(&buf) twice; don't attempt to call dns_message_...
authorMark Andrews <marka@isc.org>
Tue, 12 Dec 2017 02:20:56 +0000 (13:20 +1100)
committerMark Andrews <marka@isc.org>
Tue, 12 Dec 2017 02:24:59 +0000 (13:24 +1100)
(cherry picked from commit cb8650d875f7363c67277c3e884f3dd421bb7a2f)

lib/dns/tests/tsig_test.c

index 9652b730435a49621e04d639fc5da93f77150ad9..e1bd8645f4d5a990bea5ea57181bfbde7d868727 100644 (file)
@@ -476,12 +476,7 @@ ATF_TC_BODY(tsig_tcp, tc) {
                isc_buffer_free(&tsigin);
        if (tsigout != NULL)
                isc_buffer_free(&tsigout);
-       if (buf != NULL)
-               isc_buffer_free(&buf);
-       if (msg != NULL)
-               dns_message_destroy(&msg);
-       if (key != NULL)
-               dns_tsigkey_detach(&key);
+       dns_tsigkey_detach(&key);
        if (ring != NULL)
                dns_tsigkeyring_detach(&ring);
        dns_test_end();