Skip to content

Make RefCntOpenSslContext.deallocate more robust (#16253)#16257

Merged
normanmaurer merged 1 commit into4.1from
ref41
Feb 11, 2026
Merged

Make RefCntOpenSslContext.deallocate more robust (#16253)#16257
normanmaurer merged 1 commit into4.1from
ref41

Conversation

@normanmaurer
Copy link
Copy Markdown
Member

Motivation:
We should always close the leak detector even if the destroy method throws. A failed destroy() call will be propagated and there isn't anything the leak detector can add to that.

Modification:
Wrap the destroy() call in a try-finally and always close the leak tracker.

Result:
More robust deallocate method.

Motivation:
We should always close the leak detector even if the destroy method
throws. A failed destroy() call will be propagated and there isn't
anything the leak detector can add to that.

Modification:
Wrap the destroy() call in a try-finally and always close the leak
tracker.

Result:
More robust deallocate method.
@normanmaurer normanmaurer added this to the 4.1.132.Final milestone Feb 11, 2026
@normanmaurer normanmaurer merged commit 3e627ea into 4.1 Feb 11, 2026
19 checks passed
@normanmaurer normanmaurer deleted the ref41 branch February 11, 2026 17:00
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