Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release DnsRecords when failing to notify promise #13437

Merged
merged 1 commit into from
Jun 13, 2023

Conversation

normanmaurer
Copy link
Member

@normanmaurer normanmaurer commented 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

@normanmaurer
Copy link
Member Author

Noticed this while working on something else... That said this is more of a "correct usage" fix. As we used wrapped ByteBufs there would be no "real leak" even without this fix.

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 merged commit 79c773c into 4.1 Jun 13, 2023
14 checks passed
@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.

None yet

2 participants