Skip to content

Auto-port 5.0: Ensure the CRYPTO_BUFFER_POOL is also freed when we fail creating the SSLContext#16567

Merged
normanmaurer merged 1 commit into
5.0from
auto-port-pr-16545-to-5.0
Mar 30, 2026
Merged

Auto-port 5.0: Ensure the CRYPTO_BUFFER_POOL is also freed when we fail creating the SSLContext#16567
normanmaurer merged 1 commit into
5.0from
auto-port-pr-16545-to-5.0

Conversation

@netty-project-bot

Copy link
Copy Markdown
Contributor

Auto-port of #16545 to 5.0
Cherry-picked commit: a5a96e8


Motivation:

We did miss to also free the CRYPTO_BUFFER_POOL on cause of failure and so could leak native memory in some cases

Modifications:

Extract CRYPTO_BUFFER_POOL from the SSL_CTX and free it if needed while handling the failure case

Result:

No CRYPTO_BUFFER_POOL leak anymore in case of failure

… SSLContext (#16545)

Motivation:

We did miss to also free the CRYPTO_BUFFER_POOL on cause of failure and
so could leak native memory in some cases

Modifications:

Extract CRYPTO_BUFFER_POOL from the SSL_CTX and free it if needed while
handling the failure case

Result:

No CRYPTO_BUFFER_POOL leak anymore in case of failure

(cherry picked from commit a5a96e8)
@chrisvest chrisvest added this to the 5.0.0.Final milestone Mar 27, 2026
@normanmaurer normanmaurer merged commit 1aba270 into 5.0 Mar 30, 2026
9 of 13 checks passed
@normanmaurer normanmaurer deleted the auto-port-pr-16545-to-5.0 branch March 30, 2026 11:06
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