Skip to content

ext/openssl: fix memory leaks when retrying failed TLS setup - #26104

Open
adapik wants to merge 1 commit into
php:PHP-8.4from
adapik:fix-openssl-ssl-ctx-setup-leak
Open

adapik wants to merge 1 commit into
php:PHP-8.4from
adapik:fix-openssl-ssl-ctx-setup-leak

Conversation

@adapik

@adapik adapik commented Dec 6, 2026

Copy link
Copy Markdown
Contributor

While reviewing #26064, @devnexen pointed out that the new error path could leak the SSL_CTX. I checked, and similar leaks exist on several older error paths too.

In this PR this issue is addressed

@adapik
adapik marked this pull request as ready for review December 6, 2026 04:36
@adapik
adapik requested a review from bukka as a code owner December 6, 2026 04:36

@devnexen devnexen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lctm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants