Add test case 1673 to do repeated upload failures and verify there is no
leak. This proved a previous leak and now it verifies the fix.
Reported-by: James Fuller
Closes #21062
else
transfersl = p;
+ curlx_free(per->uploadfile);
+ curlx_free(per->outfile);
+ curlx_free(per->url);
+ curl_easy_cleanup(per->curl);
curlx_free(per);
return n;
if(per->etag_save.alloc_filename)
tool_safefree(per->etag_save.filename);
- curl_easy_cleanup(per->curl);
if(outs->alloc_filename)
curlx_free(outs->filename);
- curlx_free(per->url);
- curlx_free(per->outfile);
- curlx_free(per->uploadfile);
curl_slist_free_all(per->hdrcbdata.headlist);
per->hdrcbdata.headlist = NULL;
return result;
test1658 test1659 test1660 test1661 test1662 test1663 test1664 test1665 \
test1666 test1667 test1668 \
\
-test1670 test1671 test1672 \
+test1670 test1671 test1672 test1673 \
\
test1680 test1681 test1682 test1683 test1684 \
\
--- /dev/null
+<?xml version="1.0" encoding="US-ASCII"?>
+<testcase>
+<info>
+<keywords>
+HTTP
+upload
+--retry
+</keywords>
+</info>
+
+<client>
+<name>
+HTTP retry upload with missing upload file
+</name>
+<command>
+http://%HOSTIP:%NOLISTENPORT/%TESTNUMBER --retry 5 --retry-all-errors --upload-file AAAAAAAAAAA
+</command>
+</client>
+
+<verify>
+<errorcode>
+26
+</errorcode>
+</verify>
+</testcase>