Skip to content

ftp: replace a curlx_free() with curlx_dyn_free()#20494

Closed
vszakats wants to merge 2 commits intocurl:masterfrom
vszakats:ftpfreefix
Closed

ftp: replace a curlx_free() with curlx_dyn_free()#20494
vszakats wants to merge 2 commits intocurl:masterfrom
vszakats:ftpfreefix

Conversation

@vszakats
Copy link
Member

@vszakats vszakats commented Feb 2, 2026

On an error path.

Follow-up to f4beef5 #12638

On an error path. Also store the `curlx_dyn_ptr()` result as const.

Follow-up to f4beef5 curl#12638
@github-actions github-actions bot added the FTP label Feb 2, 2026
@vszakats
Copy link
Member Author

vszakats commented Feb 2, 2026

@aisle-analyze

@aisle-research-bot
Copy link

aisle-research-bot bot commented Feb 2, 2026

🤖 We're having trouble reviewing this PR right now

Please try again later.

Trace ID: 019c1bf541a887a40b5a5eae9ac16db4

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes an incorrect free on an FTP PWD parsing error path by freeing the dynbuf correctly.

Changes:

  • Replace curlx_free(dir) with curlx_dyn_free(&out) when Curl_pp_sendf(..., "SYST") fails inside ftp_pwd_resp().

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@vszakats vszakats closed this in 4728efe Feb 2, 2026
@vszakats vszakats deleted the ftpfreefix branch February 2, 2026 11:29
@aisle-research-bot
Copy link

aisle-research-bot bot commented Feb 2, 2026

🔒 Aisle Security Analysis

✅ We scanned this PR and did not find any security vulnerabilities.
Aisle supplements but does not replace security review.


Analyzed PR: #20494 at commit 7dfc575

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

Development

Successfully merging this pull request may close these issues.

2 participants