Skip to content

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

Merged
chrisvest merged 1 commit into5.0from
ref5
Feb 11, 2026
Merged

Make RefCntOpenSslContext.deallocate more robust (#16253)#16258
chrisvest merged 1 commit into5.0from
ref5

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 5.0.0.Final milestone Feb 11, 2026
@chrisvest chrisvest enabled auto-merge (squash) February 11, 2026 18:30
@chrisvest chrisvest merged commit 4f7b654 into 5.0 Feb 11, 2026
22 of 23 checks passed
@chrisvest chrisvest deleted the ref5 branch February 11, 2026 19:48
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