mirror of
https://github.com/moparisthebest/curl
synced 2024-11-11 12:05:06 -05:00
better freeing when bailing out due to bad output glob
This commit is contained in:
parent
fb366ed35f
commit
caca034302
@ -2672,7 +2672,7 @@ operate(struct Configurable *config, int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* loop through the list of given URLs */
|
/* loop through the list of given URLs */
|
||||||
while(urlnode) {
|
while(urlnode && !res) {
|
||||||
|
|
||||||
/* get the full URL (it might be NULL) */
|
/* get the full URL (it might be NULL) */
|
||||||
url=urlnode->url;
|
url=urlnode->url;
|
||||||
@ -2765,10 +2765,11 @@ operate(struct Configurable *config, int argc, char *argv[])
|
|||||||
free(storefile);
|
free(storefile);
|
||||||
if(!outfile) {
|
if(!outfile) {
|
||||||
/* bad globbing */
|
/* bad globbing */
|
||||||
helpf("bad output glob!\n");
|
fprintf(stderr, "bad output glob!\n");
|
||||||
return CURLE_FAILED_INIT;
|
free(url);
|
||||||
|
res = CURLE_FAILED_INIT;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Create the directory hierarchy, if not pre-existant to a multiple
|
/* Create the directory hierarchy, if not pre-existant to a multiple
|
||||||
|
Loading…
Reference in New Issue
Block a user