mirror of
https://github.com/curl/curl.git
synced 2026-07-26 14:27:17 +03:00
tool_operate: fix implicit call to easysrc_cleanup
easysrc_cleanup is only defined when CURL_DISABLE_LIBCURL_OPTION is not defined, and prior to this change would be called regardless. Bug: https://github.com/curl/curl/pull/3804#issuecomment-513922637 Reported-by: Marcel Raad Closes https://github.com/curl/curl/pull/4142
This commit is contained in:
parent
23c99f60ba
commit
cdf7d13bcb
1 changed files with 6 additions and 2 deletions
|
|
@ -2286,8 +2286,12 @@ CURLcode operate(struct GlobalConfig *config, int argc, argv_item_t argv[])
|
|||
struct OperationConfig *operation = config->first;
|
||||
CURLSH *share = curl_share_init();
|
||||
if(!share) {
|
||||
/* Cleanup the libcurl source output */
|
||||
easysrc_cleanup();
|
||||
#ifndef CURL_DISABLE_LIBCURL_OPTION
|
||||
if(config->libcurl) {
|
||||
/* Cleanup the libcurl source output */
|
||||
easysrc_cleanup();
|
||||
}
|
||||
#endif
|
||||
return CURLE_OUT_OF_MEMORY;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue