logo       

current loadcfg.c,1.69,1.70: msg#00050

web.privoxy.cvs

Subject: current loadcfg.c,1.69,1.70

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);
}
}



-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise