Skip to content

Commit ab4c6b3

Browse files
author
Stefan Fritsch
committed
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
1 parent 17d0a5c commit ab4c6b3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

modules/metadata/mod_setenvif.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ static const char *add_setenvif_core(cmd_parms *cmd, void *mconfig,
355355
new->special_type = SPECIAL_OID_VALUE;
356356

357357
/* Syntax check and extraction of the OID as a regex: */
358-
new->pnamereg = ap_pregcomp(cmd->pool,
358+
new->pnamereg = ap_pregcomp(cmd->temp_pool,
359359
"^oid\\(\"?([0-9.]+)\"?\\)$",
360360
(AP_REG_EXTENDED /* | AP_REG_NOSUB */
361361
| AP_REG_ICASE));
@@ -381,7 +381,7 @@ static const char *add_setenvif_core(cmd_parms *cmd, void *mconfig,
381381
* (new->pnamereg = NULL) to avoid the overhead of searching
382382
* through headers_in for a regex match.
383383
*/
384-
if (is_header_regex(cmd->pool, fname)) {
384+
if (is_header_regex(cmd->temp_pool, fname)) {
385385
new->pnamereg = ap_pregcomp(cmd->pool, fname,
386386
(AP_REG_EXTENDED | AP_REG_NOSUB
387387
| (icase ? AP_REG_ICASE : 0)));

0 commit comments

Comments
 (0)