mirror of
https://github.com/apache/httpd.git
synced 2025-08-07 04:02:58 +03:00
* 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
This commit is contained in:
@@ -2790,7 +2790,11 @@ ap_proxy_determine_connection(apr_pool_t *p, request_rec *r,
|
|||||||
* The single DNS lookup is used once per worker.
|
* The single DNS lookup is used once per worker.
|
||||||
* If dynamic change is needed then set the addr to NULL
|
* If dynamic change is needed then set the addr to NULL
|
||||||
* inside dynamic config to force the lookup.
|
* 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,
|
err = apr_sockaddr_info_get(&addr,
|
||||||
conn->hostname, APR_UNSPEC,
|
conn->hostname, APR_UNSPEC,
|
||||||
conn->port, 0,
|
conn->port, 0,
|
||||||
|
Reference in New Issue
Block a user