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
f0ffb6ac2e
commit
cde132051a
@ -68,6 +68,7 @@ public class TcpDnsTest {
|
||||
assertThat(readResponse.<DnsRawRecord>recordAt(DnsSection.ANSWER).content(), is(record.content()));
|
||||
ReferenceCountUtil.release(readResponse);
|
||||
ReferenceCountUtil.release(record);
|
||||
query.release();
|
||||
assertFalse(channel.finish());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user