mirror of
https://github.com/curl/curl.git
synced 2026-07-24 21:37:17 +03:00
tool_operhlp.c: fix add_file_name_to_url() OOM handling
This commit is contained in:
parent
8693bbd8c4
commit
9a5c2d8373
1 changed files with 2 additions and 0 deletions
|
|
@ -139,6 +139,8 @@ char *add_file_name_to_url(CURL *curl, char *url, const char *filename)
|
|||
|
||||
url = urlbuffer; /* use our new URL instead! */
|
||||
}
|
||||
else
|
||||
Curl_safefree(url);
|
||||
}
|
||||
return url;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue