Fix leak in TcpDnsTest (#11632)
Motivation: We did get a report for a leak on the CI. Modifications: Fix leak in test by correctly releasing the query Result: No more leaks
This commit is contained in:
parent
4f1c5b9f95
commit
887526374b
@ -46,6 +46,7 @@ public class TcpDnsTest {
|
||||
DnsQuery readQuery = channel.readInbound();
|
||||
assertThat(readQuery, is(query));
|
||||
assertThat(readQuery.recordAt(DnsSection.QUESTION).name(), is(query.recordAt(DnsSection.QUESTION).name()));
|
||||
readQuery.release();
|
||||
assertFalse(channel.finish());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user