Skip to content
Snippets Groups Projects
Commit 9010bd38 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

free all memory on failure before bailing out, not really necessary but

my upcoming automated test gets crazy if not
parent ded884e8
No related branches found
No related tags found
No related merge requests found
......@@ -2692,6 +2692,7 @@ operate(struct Configurable *config, int argc, char *argv[])
}
if(!config->url_list || !config->url_list->url) {
clean_getout(config);
helpf("no URL specified!\n");
return CURLE_FAILED_INIT;
}
......@@ -2750,8 +2751,10 @@ operate(struct Configurable *config, int argc, char *argv[])
* when all transfers are done.
*/
curl = curl_easy_init();
if(!curl)
if(!curl) {
clean_getout(config);
return CURLE_FAILED_INIT;
}
/* After this point, we should call curl_easy_cleanup() if we decide to bail
* out from this function! */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment