From: Mark Andrews Date: Tue, 12 Dec 2017 02:20:56 +0000 (+1100) Subject: don't attempt to call isc_buffer_free(&buf) twice; don't attempt to call dns_message_... X-Git-Tag: v9.11.3b1~90 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=0c38c73c4ca9f0c6090fac67def92cb576785d83;p=thirdparty%2Fbind9.git don't attempt to call isc_buffer_free(&buf) twice; don't attempt to call dns_message_destroy(&msg) twice; don't test for key != NULL (cherry picked from commit cb8650d875f7363c67277c3e884f3dd421bb7a2f) --- diff --git a/lib/dns/tests/tsig_test.c b/lib/dns/tests/tsig_test.c index 9652b730435..e1bd8645f4d 100644 --- a/lib/dns/tests/tsig_test.c +++ b/lib/dns/tests/tsig_test.c @@ -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();