Release DnsRecords when failing to notify promise by normanmaurer · Pull Request #13437 · netty/netty · GitHub
Skip to content

Release DnsRecords when failing to notify promise - #13437

Merged
normanmaurer merged 1 commit into
4.1from
leak_on_notify_failure
Jun 13, 2023
Merged

normanmaurer merged 1 commit into
4.1from
leak_on_notify_failure

Conversation

@normanmaurer

@normanmaurer normanmaurer commented Jun 13, 2023 •

Copy link
Copy Markdown
Member

Motivation:

We need to release the DnsRecords if we didnt transfer ownership to prevent leaks.

Modifications:

Release DnsRecords when trySuccess(...) returns false

Result:

Correctly release reference counted resources

@normanmaurer
normanmaurer requested a review from violetagg June 13, 2023 08:02
@normanmaurer

Copy link
Copy Markdown
Member Author

Motivation:

We need to release the DnsRecords if we didnt transfer ownership to prevent leaks.

Modifications:

Release DnsRecords when trySuccess(...) returns false

Result:

Correctly release reference counted resources
@normanmaurer
normanmaurer force-pushed the leak_on_notify_failure branch from fff6a10 to 5209e9a Compare June 13, 2023 08:15
@normanmaurer
normanmaurer merged commit 79c773c into 4.1 Jun 13, 2023
@normanmaurer
normanmaurer deleted the leak_on_notify_failure branch June 13, 2023 13:58
@normanmaurer normanmaurer added this to the 4.1.94.Final milestone Jun 13, 2023
normanmaurer added a commit that referenced this pull request Jun 13, 2023
Motivation:

We need to release the DnsRecords if we didnt transfer ownership to
prevent leaks.

Modifications:

Release DnsRecords when trySuccess(...) returns false

Result:

Correctly release reference counted resources
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants