From: Stefan Fritsch Date: Sat, 23 Oct 2010 16:20:10 +0000 (+0000) Subject: Remove needless pool cleanup. ap_pregcomp already registers a cleanup for the X-Git-Tag: 2.3.9~237 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=73ea59a31a9688bcdab47a478df36f49421c089d;p=apache Remove needless pool cleanup. ap_pregcomp already registers a cleanup for the regex. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1026636 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/mod_proxy_http.c b/modules/proxy/mod_proxy_http.c index 5912777591..e636b73074 100644 --- a/modules/proxy/mod_proxy_http.c +++ b/modules/proxy/mod_proxy_http.c @@ -2127,17 +2127,11 @@ cleanup: } return status; } -static apr_status_t warn_rx_free(void *p) -{ - ap_pregfree((apr_pool_t*)p, warn_rx); - return APR_SUCCESS; -} static void ap_proxy_http_register_hook(apr_pool_t *p) { proxy_hook_scheme_handler(proxy_http_handler, NULL, NULL, APR_HOOK_FIRST); proxy_hook_canon_handler(proxy_http_canon, NULL, NULL, APR_HOOK_FIRST); warn_rx = ap_pregcomp(p, "[0-9]{3}[ \t]+[^ \t]+[ \t]+\"[^\"]*\"([ \t]+\"([^\"]+)\")?", 0); - apr_pool_cleanup_register(p, p, warn_rx_free, apr_pool_cleanup_null); } AP_DECLARE_MODULE(proxy_http) = {