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-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad4f3e7639921755dd69ec35401558c1a42aa9f8;p=thirdparty%2Fapache%2Fhttpd.git 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 23a90516db1..5d634ed5206 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)