tool_operhlp.c: fix add_file_name_to_url() OOM handling
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user