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 committed by GitHub
parent 7b8050ae53
commit 6f00c5ebf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -44,6 +44,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());
}