diff --git a/codec-dns/src/test/java/io/netty/handler/codec/dns/TcpDnsTest.java b/codec-dns/src/test/java/io/netty/handler/codec/dns/TcpDnsTest.java index e157e0f29d..c05efa55e7 100644 --- a/codec-dns/src/test/java/io/netty/handler/codec/dns/TcpDnsTest.java +++ b/codec-dns/src/test/java/io/netty/handler/codec/dns/TcpDnsTest.java @@ -66,6 +66,7 @@ public class TcpDnsTest { assertThat(readResponse.recordAt(DnsSection.ANSWER).content(), is(record.content())); ReferenceCountUtil.release(readResponse); ReferenceCountUtil.release(record); + query.release(); assertFalse(channel.finish()); }