X-Git-Url: http://www.privoxy.org/gitweb/?a=blobdiff_plain;f=loadcfg.c;h=57c0e0f88437bed22362af2b203583b0f08c04b9;hb=7cd7f5452175e5c161896a757f01ade31fcdac02;hp=1472081c5c5b7146fd24c9328be3be31aaddf629;hpb=3d36d0cb7f3f6dd2342cc42311cbde7e169bc36b;p=privoxy.git
diff --git a/loadcfg.c b/loadcfg.c
index 1472081c..57c0e0f8 100644
--- a/loadcfg.c
+++ b/loadcfg.c
@@ -1,4 +1,4 @@
-const char loadcfg_rcs[] = "$Id: loadcfg.c,v 1.54 2006/10/21 16:04:22 fabiankeil Exp $";
+const char loadcfg_rcs[] = "$Id: loadcfg.c,v 1.55 2006/11/28 15:31:52 fabiankeil Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/loadcfg.c,v $
@@ -35,6 +35,9 @@ const char loadcfg_rcs[] = "$Id: loadcfg.c,v 1.54 2006/10/21 16:04:22 fabiankeil
*
* Revisions :
* $Log: loadcfg.c,v $
+ * Revision 1.55 2006/11/28 15:31:52 fabiankeil
+ * Fix memory leak in case of config file reloads.
+ *
* Revision 1.54 2006/10/21 16:04:22 fabiankeil
* Modified kludge for win32 to make ming32 menu
* "Options/Edit Filters" (sort of) work again.
@@ -1657,7 +1660,7 @@ static void savearg(char *command, char *argument, struct configuration_spec * c
* Add config option name embedded in
* link to it's section in the user-manual
*/
- buf = strdup("\n
usermanual, "file://", 7) ||
!strncmpic(config->usermanual, "http", 4))
{
@@ -1705,6 +1708,7 @@ static void savearg(char *command, char *argument, struct configuration_spec * c
}
}
+ string_append(&buf, "
");
string_join(&config->proxy_args, buf);
}