diff --git a/lib/dns/tests/tsig_test.c b/lib/dns/tests/tsig_test.c index a680112eee..5e0f39bfbd 100644 --- a/lib/dns/tests/tsig_test.c +++ b/lib/dns/tests/tsig_test.c @@ -487,12 +487,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();