From c6889dab18d3fcbcb9e9ac28ccdf684131a0089f Mon Sep 17 00:00:00 2001 From: Tim Ruehsen Date: Sun, 22 Apr 2012 18:36:09 +0200 Subject: [PATCH] Fix a possible invalid `free'. --- src/ChangeLog | 4 ++++ src/main.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 08266a73..44d4b54d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2012-04-22 Tim Ruehsen + + * main.c (main): Dynamically allocate `opt.progress_type'. + 2012-04-21 Tim Ruehsen * ftp-basic.c (ftp_pasv): Fix memory leak. diff --git a/src/main.c b/src/main.c index a12aaf1b..438085e4 100644 --- a/src/main.c +++ b/src/main.c @@ -1299,7 +1299,7 @@ for details.\n\n")); } if (opt.warc_keep_log) { - opt.progress_type = "dot"; + opt.progress_type = xstrdup ("dot"); } }