From: Christophe Jaillet Date: Thu, 10 Dec 2015 06:39:46 +0000 (+0000) Subject: There is no need to duplicate some memory here, the 'path' given to ap_parse_htacces... X-Git-Tag: 2.5.0-alpha~2551 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=60964353d519fc8098571b3f692547a5615c88d2;p=apache There is no need to duplicate some memory here, the 'path' given to ap_parse_htaccess is never modified. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1719016 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/request.c b/server/request.c index 35de21d848..de90dd9fca 100644 --- a/server/request.c +++ b/server/request.c @@ -1016,8 +1016,7 @@ AP_DECLARE(int) ap_directory_walk(request_rec *r) res = ap_parse_htaccess(&htaccess_conf, r, opts.override, opts.override_opts, opts.override_list, - apr_pstrdup(r->pool, r->filename), - sconf->access_name); + r->filename, sconf->access_name); if (res) { return res; }