From 3037f411c9e03c096dbfc0678cd0e5306d988c90 Mon Sep 17 00:00:00 2001 From: Stefan Fritsch Date: Tue, 9 Nov 2010 18:34:43 +0000 Subject: [PATCH] use temp_pool for some temporary regexps git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1033145 13f79535-47bb-0310-9956-ffa450edef68 --- modules/metadata/mod_setenvif.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/metadata/mod_setenvif.c b/modules/metadata/mod_setenvif.c index 833518fb5e..076ca3625f 100644 --- a/modules/metadata/mod_setenvif.c +++ b/modules/metadata/mod_setenvif.c @@ -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))); -- 2.40.0