Skip to content

Conversation

@x2018
Copy link
Contributor

@x2018 x2018 commented Oct 31, 2025

This PR tries to cleanup several resources on error paths.

@github-actions github-actions bot added the name lookup DNS and related tech label Oct 31, 2025
bagder added a commit that referenced this pull request Oct 31, 2025
Reported-by: Xiaoke Wang
Fixes #19310
@bagder
Copy link
Member

bagder commented Oct 31, 2025

Nice catch!

Instead of adding cleanup calls in the error cases, how about doing a goto solution like I propose here: #19314 ?

@x2018
Copy link
Contributor Author

x2018 commented Nov 1, 2025

I updated the code based on #19314.
One difference is that the code keeps Curl_resolv_unlink(data, &dns); on the local error path of doh_resp_decode_httpsrr().

@bagder bagder closed this in f6bbc2b Nov 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

name lookup DNS and related tech

Development

Successfully merging this pull request may close these issues.

2 participants