From: hniksic Date: Mon, 16 May 2005 15:09:07 +0000 (-0700) Subject: [svn] Don't free the non-existent opt.ftp_acc. Free the SSL-related stuff. X-Git-Tag: v1.13~1027 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=20e79ab0fad2115285cb20a3e65bd4fb5dc33f9f [svn] Don't free the non-existent opt.ftp_acc. Free the SSL-related stuff. --- diff --git a/src/ChangeLog b/src/ChangeLog index a1849db3..e5b07ded 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2005-05-16 Hrvoje Niksic + + * init.c (cleanup): Don't free the non-existent opt.ftp_acc. Free + the SSL-related stuff. + 2005-05-16 Hrvoje Niksic * ftp.c (print_length): Consistently print \n at end of the diff --git a/src/init.c b/src/init.c index 45d10243..987b0d59 100644 --- a/src/init.c +++ b/src/init.c @@ -1494,7 +1494,6 @@ cleanup (void) free_vec (opt.follow_tags); free_vec (opt.ignore_tags); xfree_null (opt.progress_type); - xfree (opt.ftp_acc); xfree_null (opt.ftp_user); xfree_null (opt.ftp_passwd); xfree_null (opt.ftp_proxy); @@ -1509,6 +1508,10 @@ cleanup (void) # ifdef HAVE_SSL xfree_null (opt.cert_file); xfree_null (opt.private_key); + xfree_null (opt.ca_directory); + xfree_null (opt.ca_cert); + xfree_null (opt.random_file); + xfree_null (opt.egd_file); # endif xfree_null (opt.bind_address); xfree_null (opt.cookies_input);