|
[privoxy-commits] current loadcfg.c,1.69,1.70
From: <noreply@so...> - 2007-12-15 14:24
|
Update of /cvsroot/ijbswa/current
In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv29183
Modified Files:
loadcfg.c
Log Message:
Plug memory leak if listen-address only specifies the port.
Index: loadcfg.c
===================================================================
RCS file: /cvsroot/ijbswa/current/loadcfg.c,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -d -r1.69 -r1.70
--- loadcfg.c 27 Oct 2007 13:02:27 -0000 1.69
+++ loadcfg.c 15 Dec 2007 14:24:05 -0000 1.70
@@ -35,6 +35,9 @@
*
* Revisions :
* $Log$
+ * Revision 1.70 2007/12/15 14:24:05 fabiankeil
+ * Plug memory leak if listen-address only specifies the port.
+ *
* Revision 1.69 2007/10/27 13:02:27 fabiankeil
* Relocate daemon-mode-related log messages to make sure
* they aren't shown again in case of configuration reloads.
@@ -1692,7 +1695,11 @@
}
if (*config->haddr == '\0')
{
- config->haddr = NULL;
+ /*
+ * Only the port specified. We stored it in config->hport
+ * and don't need its text representation anymore.
+ */
+ freez(config->haddr);
}
}
|
| Thread | Author | Date |
|---|---|---|
| [privoxy-commits] current loadcfg.c,1.69,1.70 | <noreply@so...> |