diff options
author | Ruediger Pluem <rpluem@apache.org> | 2023-04-25 11:57:22 +0000 |
---|---|---|
committer | Ruediger Pluem <rpluem@apache.org> | 2023-04-25 11:57:22 +0000 |
commit | 12b589f1e4b063d7b85af38985b774ed390c8f7c (patch) | |
tree | 02075f6b1e960b1dd74174c8d6693c54df62307c | |
parent | dc498e9fde0efa2c968799cc295000d13104b82c (diff) | |
download | httpd-12b589f1e4b063d7b85af38985b774ed390c8f7c.tar.gz |
* Clear the dns_pool before to avoid a memory leak in case we did the lookup
again.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909401 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | modules/proxy/proxy_util.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/proxy/proxy_util.c b/modules/proxy/proxy_util.c index be907af078..c11bac2b26 100644 --- a/modules/proxy/proxy_util.c +++ b/modules/proxy/proxy_util.c @@ -2790,7 +2790,11 @@ ap_proxy_determine_connection(apr_pool_t *p, request_rec *r, * The single DNS lookup is used once per worker. * If dynamic change is needed then set the addr to NULL * inside dynamic config to force the lookup. + * + * Clear the dns_pool before to avoid a memory leak in case + * we did the lookup again. */ + apr_pool_clear(worker->cp->dns_pool); err = apr_sockaddr_info_get(&addr, conn->hostname, APR_UNSPEC, conn->port, 0, |