projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
861e500
)
Don't leak csp->http->host_ip_addr_str when calling rfc2553_connect_to() multiple...
author
Fabian Keil
<fk@fabiankeil.de>
Sun, 27 Mar 2011 13:56:48 +0000
(13:56 +0000)
committer
Fabian Keil
<fk@fabiankeil.de>
Sun, 27 Mar 2011 13:56:48 +0000
(13:56 +0000)
jbsockets.c
patch
|
blob
|
history
diff --git
a/jbsockets.c
b/jbsockets.c
index
8424c02
..
5906f3f
100644
(file)
--- a/
jbsockets.c
+++ b/
jbsockets.c
@@
-1,4
+1,4
@@
-const char jbsockets_rcs[] = "$Id: jbsockets.c,v 1.8
7 2011/03/27 13:55:55
fabiankeil Exp $";
+const char jbsockets_rcs[] = "$Id: jbsockets.c,v 1.8
8 2011/03/27 13:56:27
fabiankeil Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/jbsockets.c,v $
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/jbsockets.c,v $
@@
-188,6
+188,7
@@
static jb_socket rfc2553_connect_to(const char *host, int portnum, struct client
/* Don't leak memory when retrying. */
freez(csp->error_message);
/* Don't leak memory when retrying. */
freez(csp->error_message);
+ freez(csp->http->host_ip_addr_str);
retval = snprintf(service, sizeof(service), "%d", portnum);
if ((-1 == retval) || (sizeof(service) <= retval))
retval = snprintf(service, sizeof(service), "%d", portnum);
if ((-1 == retval) || (sizeof(service) <= retval))