]> granicus.if.org Git - curl/commitdiff
Lars M Gustafsson showed us that the free(urlbuffer) was totally unnecessary
authorDaniel Stenberg <daniel@haxx.se>
Mon, 19 Nov 2001 19:21:06 +0000 (19:21 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 19 Nov 2001 19:21:06 +0000 (19:21 +0000)
and plain wrong.

src/main.c

index 0cce58ea1b40d1cf9cc65815647fce307bab3e3c..f419e0ac5c504e93b52c61ea496e6d72b614b9c2 100644 (file)
@@ -2322,8 +2322,6 @@ operate(struct Configurable *config, int argc, char *argv[])
       if(config->headerfile && !headerfilep && heads.stream)
         fclose(heads.stream);
 
-      if(urlbuffer)
-        free(urlbuffer);
       if (outfile && !strequal(outfile, "-") && outs.stream)
         fclose(outs.stream);