]> granicus.if.org Git - apache/commitdiff
another suggestion by Yann... use a shorter lifetime pool
authorJim Jagielski <jim@apache.org>
Thu, 17 Oct 2013 22:04:31 +0000 (22:04 +0000)
committerJim Jagielski <jim@apache.org>
Thu, 17 Oct 2013 22:04:31 +0000 (22:04 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1533272 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/proxy_util.c

index 23a90516db1ed2ca92c1253885563f82315a1cb2..5d634ed5206073fb3871a4a0d7652a0c57abf381 100644 (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)