Skip to content

cli_ev_download: fix memleak on error - #23872

Closed
vszakats wants to merge 1 commit into
curl:masterfrom
vszakats:cli_ev_download-leak
Closed

vszakats wants to merge 1 commit into
curl:masterfrom
vszakats:cli_ev_download-leak

Conversation

@vszakats

@vszakats vszakats commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Seen in test 2330 torture with c-ares not enabled, or threaded-resolved
not disabled.

Fixing:

test 2330 [FTP server response timeout with the socket action API]
 76 functions found, but only fail 25 (32.89%)
** MEMORY FAILURE
Leak detected: memory still allocated: 3056 bytes
At 5c4ca478c9e8, there is 3056 bytes.
 allocated by /home/runner/work/curl/curl/lib/url.c:457
LIMIT /home/runner/work/curl/curl/lib/curlx/strdup.c:87 malloc reached memlimit
 2330: torture FAILED: function number 14 in test.
 invoke with "-t14" to repeat this single case.

Linux: https://github.com/curl/curl/actions/runs/42739521997/job/129576860241?pr=23869#step:45:3215
macOS: https://github.com/curl/curl/actions/runs/42739522174/job/129576860210?pr=23869#step:17:1457

Bug: #23246 (comment)
Bug: #23869 (comment)
Follow-up to b32baab #23246
Follow-up to 820c014 #22304
Cherry-picked from #23869

Seen in test 2330 torture with c-ares not enabled, or threaded-resolved
not disabled.

Bug: curl#23246 (comment)
Bug: curl#23869 (comment)
Follow-up to b32baab curl#23246
Follow-up to 820c014 curl#22304
Cherry-picked from curl#23869
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.

1 participant