httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jaillet...@apache.org
Subject svn commit: r1719016 - /httpd/httpd/trunk/server/request.c
Date Thu, 10 Dec 2015 06:39:47 GMT
Author: jailletc36
Date: Thu Dec 10 06:39:46 2015
New Revision: 1719016

URL: http://svn.apache.org/viewvc?rev=1719016&view=rev
Log:
There is no need to duplicate some memory  here, the 'path' given to ap_parse_htaccess is
never modified.

Modified:
    httpd/httpd/trunk/server/request.c

Modified: httpd/httpd/trunk/server/request.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/request.c?rev=1719016&r1=1719015&r2=1719016&view=diff
==============================================================================
--- httpd/httpd/trunk/server/request.c (original)
+++ httpd/httpd/trunk/server/request.c Thu Dec 10 06:39:46 2015
@@ -1016,8 +1016,7 @@ AP_DECLARE(int) ap_directory_walk(reques
 
                 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;
                 }



Mime
View raw message