]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Use temp_pool not pool for a string that's a temp
authorNick Kew <niq@apache.org>
Thu, 22 Jul 2010 23:02:12 +0000 (23:02 +0000)
committerNick Kew <niq@apache.org>
Thu, 22 Jul 2010 23:02:12 +0000 (23:02 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@966892 13f79535-47bb-0310-9956-ffa450edef68

modules/filters/mod_filter.c

index 22042c1dbc5ba46711c43c6b396230ed836486eb..16dc6626336c42b1688b29566af972d830397ce7 100644 (file)
@@ -558,7 +558,7 @@ static const char *filter_bytype(cmd_parms *cmd, void *CFG,
     /* back compatibility, need to parse multiple components in pname */
     char *pname;
     char *strtok_state = NULL;
-    char *name = apr_pstrdup(cmd->pool, names);
+    char *name = apr_pstrdup(cmd->temp_pool, names);
     const char *rv = NULL;
     for (pname = apr_strtok(name, ";", &strtok_state);
          pname != NULL && rv == NULL;