Fix leak in TcpDnsTest (#11606)
Motivation: In another PR we did observe a leak report for TcpDnsTest Modifications: Correctly release the query. Result: No more leaks
This commit is contained in:
parent
33b63c325f
commit
9d25bc8a4e
@ -66,6 +66,7 @@ public class TcpDnsTest {
|
|||||||
assertThat(readResponse.<DnsRawRecord>recordAt(DnsSection.ANSWER).content(), is(record.content()));
|
assertThat(readResponse.<DnsRawRecord>recordAt(DnsSection.ANSWER).content(), is(record.content()));
|
||||||
ReferenceCountUtil.release(readResponse);
|
ReferenceCountUtil.release(readResponse);
|
||||||
ReferenceCountUtil.release(record);
|
ReferenceCountUtil.release(record);
|
||||||
|
query.release();
|
||||||
assertFalse(channel.finish());
|
assertFalse(channel.finish());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user