mirror of
https://github.com/curl/curl.git
synced 2026-04-15 00:51:42 +03:00
tool_operhlp: propagate low-level OOM in add_file_name_to_url()
Bug: https://github.com/curl/curl/pull/21011#discussion_r2961678069 Closes #21043
This commit is contained in:
parent
8ffe0db8f8
commit
e0038e1096
1 changed files with 4 additions and 0 deletions
|
|
@ -102,6 +102,10 @@ CURLcode add_file_name_to_url(CURL *curl, char **inurlp, const char *filename)
|
|||
goto out;
|
||||
}
|
||||
uerr = curl_url_get(uh, CURLUPART_QUERY, &query, 0);
|
||||
if(uerr == CURLUE_OUT_OF_MEMORY) {
|
||||
result = urlerr_cvt(uerr);
|
||||
goto out;
|
||||
}
|
||||
if(!uerr && query) {
|
||||
curl_free(query);
|
||||
result = CURLE_OK;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue