Skip to content

Commit

Permalink
Fix leak in TcpDnsTest (netty#11632)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
normanmaurer authored Aug 31, 2021
1 parent 7b8050a commit 6f00c5e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public void testQueryDecode() {
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());
}

Expand Down

0 comments on commit 6f00c5e

Please sign in to comment.