Skip to content

Auto-port 5.0: Fix leak in ReferenceCountedOpenSslEngine.addCredential - #16985

Merged
chrisvest merged 1 commit into
5.0from
auto-port-pr-16979-to-5.0
Jun 24, 2026
Merged

chrisvest merged 1 commit into
5.0from
auto-port-pr-16979-to-5.0

Conversation

@netty-project-bot

Copy link
Copy Markdown
Contributor

Auto-port of #16979 to 5.0
Cherry-picked commit: c1cbdfb


Motivation:

Currently there is asymmetry / inconsistency in the retain/free model for the context and engine entry points of SslCredential objects.

Modification:

Free references on engine shutdown, add ref count test, clarify reference behavior on docstrings, and annotate SslCredential tests with leak presence detectors.

Result:

Reference count is consistent between context and engine entry points

Motivation:

Currently there is asymmetry / inconsistency in the retain/free model
for the context and engine entry points of SslCredential objects.

Modification:

Free references on engine shutdown, add ref count test, clarify
reference behavior on docstrings, and annotate SslCredential tests with
leak presence detectors.

Result:

Reference count is consistent between context and engine entry points

(cherry picked from commit c1cbdfb)
@chrisvest chrisvest added this to the 5.0.0.Final milestone Jun 24, 2026
@chrisvest
chrisvest merged commit 7bd2265 into 5.0 Jun 24, 2026
12 of 13 checks passed
@chrisvest
chrisvest deleted the auto-port-pr-16979-to-5.0 branch June 24, 2026 17:49
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.

3 participants