From: Fabian Keil Date: Sat, 18 Oct 2014 11:27:28 +0000 (+0000) Subject: Fix memory leaks in load_config() X-Git-Tag: v_3_0_22~53 X-Git-Url: http://www.privoxy.org/gitweb/appendix.html?a=commitdiff_plain;h=db0665a3eaeaef166fba02bcbe16f5ba23d7cc92;p=privoxy.git Fix memory leaks in load_config() CID 66370. --- diff --git a/loadcfg.c b/loadcfg.c index 3ee65b84..6550b032 100644 --- a/loadcfg.c +++ b/loadcfg.c @@ -1,4 +1,4 @@ -const char loadcfg_rcs[] = "$Id: loadcfg.c,v 1.140 2014/06/02 06:19:06 fabiankeil Exp $"; +const char loadcfg_rcs[] = "$Id: loadcfg.c,v 1.141 2014/06/02 06:22:21 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/loadcfg.c,v $ @@ -948,6 +948,7 @@ struct configuration_spec * load_config(void) string_append(&config->proxy_args, "
\nWARNING: Bad URL specifier for " "forward directive in configuration file."); + freez(cur_fwd); break; } @@ -1003,6 +1004,7 @@ struct configuration_spec * load_config(void) string_append(&config->proxy_args, "
\nWARNING: Bad URL specifier for " "forward-socks4 directive in configuration file."); + freez(cur_fwd); break; } @@ -1083,6 +1085,7 @@ struct configuration_spec * load_config(void) string_append(&config->proxy_args, "
\nWARNING: Bad URL specifier for " "forward-socks4a directive in configuration file."); + freez(cur_fwd); break; }