Skip to content

tftp: release filename if conn_get_remote_addr fails#19409

Closed
x2018 wants to merge 2 commits into
curl:masterfrom
x2018:tftp_filename_memleak
Closed

tftp: release filename if conn_get_remote_addr fails#19409
x2018 wants to merge 2 commits into
curl:masterfrom
x2018:tftp_filename_memleak

Conversation

@x2018

@x2018 x2018 commented Nov 8, 2025

Copy link
Copy Markdown
Contributor

When Curl_conn_get_remote_addr (at line 532 of the orginal code) fails, the original code does not properly release filename.
This PR releases filename immediately after it becomes useless, so that we do not need to take care of it on the subsequent error paths.

@github-actions github-actions Bot added the TFTP label Nov 8, 2025
@bagder bagder closed this in 5958439 Nov 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants