]> granicus.if.org Git - apache/commitdiff
use temp_pool for some temporary regexps
authorStefan Fritsch <sf@apache.org>
Tue, 9 Nov 2010 18:34:43 +0000 (18:34 +0000)
committerStefan Fritsch <sf@apache.org>
Tue, 9 Nov 2010 18:34:43 +0000 (18:34 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1033145 13f79535-47bb-0310-9956-ffa450edef68

modules/metadata/mod_setenvif.c

index 833518fb5ee6ef5930b44bb9b3ba9c46e78957e5..076ca3625fc27b3f81efd9dec895046fce92466e 100644 (file)
@@ -355,7 +355,7 @@ static const char *add_setenvif_core(cmd_parms *cmd, void *mconfig,
             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_parms *cmd, void *mconfig,
              * (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)));