X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=src%2Fmain.c;h=4eed7df9e1fcff4e4c81cfe12e6d76ce005c44d0;hb=d5be8ecca466601bda9b81c28a79077fbda6ccde;hp=1cce246341f5a3313f2aa2a46a9b0a3f3418bb65;hpb=f4dcb55851b2d829027d480a9c040bc09371af6b;p=wget diff --git a/src/main.c b/src/main.c index 1cce2463..4eed7df9 100644 --- a/src/main.c +++ b/src/main.c @@ -727,7 +727,7 @@ Can't timestamp and not clobber old files at the same time.\n")); /* Fill in the arguments. */ for (i = 0; i < nurl; i++, optind++) { - char *rewritten = rewrite_url_maybe (argv[optind]); + char *rewritten = rewrite_shorthand_url (argv[optind]); if (rewritten) { printf ("Converted %s to %s\n", argv[optind], rewritten); @@ -845,10 +845,12 @@ Can't timestamp and not clobber old files at the same time.\n")); { convert_all_links (); } + log_close (); for (i = 0; i < nurl; i++) - free (url[i]); + xfree (url[i]); cleanup (); + #ifdef DEBUG_MALLOC print_malloc_debug_stats (); #endif