From c418702714758f2f08c1d2a1549d781e4adfba56 Mon Sep 17 00:00:00 2001 From: Jim Jagielski <jim@apache.org> Date: Thu, 17 Oct 2013 22:04:31 +0000 Subject: [PATCH] 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 --- modules/proxy/proxy_util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.40.0