httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s.@apache.org
Subject svn commit: r1033145 - /httpd/httpd/trunk/modules/metadata/mod_setenvif.c
Date Tue, 09 Nov 2010 18:34:43 GMT
Author: sf
Date: Tue Nov  9 18:34:43 2010
New Revision: 1033145

URL: http://svn.apache.org/viewvc?rev=1033145&view=rev
Log:
use temp_pool for some temporary regexps

Modified:
    httpd/httpd/trunk/modules/metadata/mod_setenvif.c

Modified: httpd/httpd/trunk/modules/metadata/mod_setenvif.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/metadata/mod_setenvif.c?rev=1033145&r1=1033144&r2=1033145&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/metadata/mod_setenvif.c (original)
+++ httpd/httpd/trunk/modules/metadata/mod_setenvif.c Tue Nov  9 18:34:43 2010
@@ -355,7 +355,7 @@ static const char *add_setenvif_core(cmd
             new->special_type = SPECIAL_OID_VALUE;
 
             /* Syntax check and extraction of the OID as a regex: */
-            new->pnamereg = ap_pregcomp(cmd->pool,
+            new->pnamereg = ap_pregcomp(cmd->temp_pool,
                                         "^oid\\(\"?([0-9.]+)\"?\\)$",
                                         (AP_REG_EXTENDED /* | AP_REG_NOSUB */
                                          | AP_REG_ICASE));
@@ -381,7 +381,7 @@ static const char *add_setenvif_core(cmd
              * (new->pnamereg = NULL) to avoid the overhead of searching
              * through headers_in for a regex match.
              */
-            if (is_header_regex(cmd->pool, fname)) {
+            if (is_header_regex(cmd->temp_pool, fname)) {
                 new->pnamereg = ap_pregcomp(cmd->pool, fname,
                                             (AP_REG_EXTENDED | AP_REG_NOSUB
                                              | (icase ? AP_REG_ICASE : 0)));



Mime
View raw message