Skip to content

Conversation

@bagder
Copy link
Member

@bagder bagder commented Oct 28, 2025

Avoid a resource leak in the error path.

Reported-by: Joshua Rogers

@bagder bagder requested a review from jay October 28, 2025 08:06
@bagder bagder added TLS Windows Windows-specific labels Oct 28, 2025
@bagder bagder marked this pull request as ready for review October 28, 2025 08:17
@testclutch
Copy link

Analysis of PR #19265 at 5fc3b1e2:

Test ../../tests/http/test_17_ssl_use.py::TestSSLUse::test_17_20_correct_pin[h3] failed, which has NOT been flaky recently, so there could be a real issue in this PR. Note that this test has failed in 2 different CI jobs (the link just goes to one of them).

Generated by Testclutch

Avoid a resource leak in the error path.

Reported-by: Joshua Rogers

Closes #19265
@bagder bagder force-pushed the bagder/schannel-more branch from 5fc3b1e to 293ca6c Compare October 28, 2025 10:35
@bagder
Copy link
Member Author

bagder commented Oct 28, 2025

This change is larger than necessary, but I do want to also take the opportunity to slowly improve the function to increase readability and become less "entangled".

@jay
Copy link
Member

jay commented Oct 28, 2025

IMO it isn't easier to read and #19244 was better. However it is not incorrect.

@bagder bagder closed this in 875ea98 Oct 28, 2025
@bagder bagder deleted the bagder/schannel-more branch October 28, 2025 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

TLS Windows Windows-specific

Development

Successfully merging this pull request may close these issues.

3 participants