httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r1533272 - /httpd/httpd/trunk/modules/proxy/proxy_util.c
Date Thu, 17 Oct 2013 22:04:32 GMT
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)



Mime
View raw message