From: Daniel Stenberg Date: Tue, 7 Feb 2006 18:56:41 +0000 (+0000) Subject: avoid illegal memory access when doing "-T [URL] [URL]" X-Git-Tag: upstream/7.37.1~10528 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d7a83d8995c43371c48d2785e602c5f446b634ce;p=platform%2Fupstream%2Fcurl.git avoid illegal memory access when doing "-T [URL] [URL]" --- diff --git a/src/main.c b/src/main.c index 44471be..c604924 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);