From: Jim Jagielski Date: Thu, 17 Oct 2013 22:04:31 +0000 (+0000) Subject: another suggestion by Yann... use a shorter lifetime pool X-Git-Tag: 2.5.0-alpha~4919 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c418702714758f2f08c1d2a1549d781e4adfba56;p=apache another suggestion by Yann... use a shorter lifetime pool git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1533272 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/proxy_util.c b/modules/proxy/proxy_util.c index 23a90516db..5d634ed520 100644 --- a/modules/proxy/proxy_util.c +++ b/modules/proxy/proxy_util.c @@ -2094,7 +2094,8 @@ PROXY_DECLARE(int) ap_proxy_acquire_connection(const char *proxy_function, 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)