You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ji...@apache.org on 2013/10/18 00:04:32 UTC
svn commit: r1533272 - /httpd/httpd/trunk/modules/proxy/proxy_util.c
Author: jim
Date: Thu Oct 17 22:04:31 2013
New Revision: 1533272
URL: http://svn.apache.org/r1533272
Log:
another suggestion by Yann... use a shorter lifetime pool
Modified:
httpd/httpd/trunk/modules/proxy/proxy_util.c
Modified: httpd/httpd/trunk/modules/proxy/proxy_util.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/proxy_util.c?rev=1533272&r1=1533271&r2=1533272&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/proxy_util.c (original)
+++ httpd/httpd/trunk/modules/proxy/proxy_util.c Thu Oct 17 22:04:31 2013
@@ -2094,7 +2094,8 @@ PROXY_DECLARE(int) ap_proxy_acquire_conn
if (*worker->s->uds_path) {
if ((*conn)->uds_path == NULL) {
- (*conn)->uds_path = apr_pstrdup(worker->cp->pool, worker->s->uds_path);
+ /* use (*conn)->pool instead of worker->cp->pool to match lifetime */
+ (*conn)->uds_path = apr_pstrdup((*conn)->pool, worker->s->uds_path);
}
if ((*conn)->uds_path) {
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, s, APLOGNO(02545)