1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

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
This commit is contained in:
Jim Jagielski
2013-10-17 22:04:31 +00:00
parent a4ef54fbbc
commit c418702714

View File

@@ -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)