1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

Fix a possible invalid `free'.

This commit is contained in:
Tim Ruehsen 2012-04-22 18:36:09 +02:00 committed by Giuseppe Scrivano
parent 196f70a7df
commit c6889dab18
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2012-04-22 Tim Ruehsen <tim.ruehsen@gmx.de>
* main.c (main): Dynamically allocate `opt.progress_type'.
2012-04-21 Tim Ruehsen <tim.ruehsen@gmx.de>
* ftp-basic.c (ftp_pasv): Fix memory leak.

View File

@ -1299,7 +1299,7 @@ for details.\n\n"));
}
if (opt.warc_keep_log)
{
opt.progress_type = "dot";
opt.progress_type = xstrdup ("dot");
}
}