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:
Norman Maurer 2021-08-31 08:06:15 +02:00
parent 4f1c5b9f95
commit 887526374b
1 changed files with 1 additions and 0 deletions

View File

@ -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());
}