diff --git a/src/main.c b/src/main.c index 44471be40..c6049242c 100644 --- a/src/main.c +++ b/src/main.c @@ -4216,8 +4216,10 @@ show_error: } /* loop to the next globbed upload file */ - if(inglob) + if(inglob) { glob_cleanup(inglob); + inglob = NULL; + } if(outfiles) free(outfiles);