diff options
| author | Christophe Jaillet <jailletc36@apache.org> | 2015-02-05 21:03:04 +0000 |
|---|---|---|
| committer | Christophe Jaillet <jailletc36@apache.org> | 2015-02-05 21:03:04 +0000 |
| commit | 25a2e41ea7e474100375986de0a0d792ff8094de (patch) | |
| tree | 465a7fc8138a408991b5a805b9ee8dd8c696b69f | |
| parent | be32097e6c360f5cea91969409c33bfc1d2d2469 (diff) | |
| download | httpd-25a2e41ea7e474100375986de0a0d792ff8094de.tar.gz | |
Save a few bytes in conf pool when parsing some directives. Use temp_pool when applicable.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1657692 13f79535-47bb-0310-9956-ffa450edef68
| -rw-r--r-- | modules/filters/mod_filter.c | 2 | ||||
| -rw-r--r-- | os/unix/unixd.c | 4 | ||||
| -rw-r--r-- | server/mpm_common.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/modules/filters/mod_filter.c b/modules/filters/mod_filter.c index 8fb872cdbf..bd2cf7ac17 100644 --- a/modules/filters/mod_filter.c +++ b/modules/filters/mod_filter.c @@ -362,7 +362,7 @@ static const char *filter_protocol(cmd_parms *cmd, void *CFG, const char *fname, } /* Now set flags from our args */ - for (arg = apr_strtok(apr_pstrdup(cmd->pool, proto), sep, &tok); + for (arg = apr_strtok(apr_pstrdup(cmd->temp_pool, proto), sep, &tok); arg; arg = apr_strtok(NULL, sep, &tok)) { if (!strcasecmp(arg, "change=yes")) { diff --git a/os/unix/unixd.c b/os/unix/unixd.c index bcb97a57db..d7042bf686 100644 --- a/os/unix/unixd.c +++ b/os/unix/unixd.c @@ -74,7 +74,7 @@ AP_DECLARE(void) ap_unixd_set_rlimit(cmd_parms *cmd, struct rlimit **plimit, return; } - if (*(str = ap_getword_conf(cmd->pool, &arg)) != '\0') { + if (*(str = ap_getword_conf(cmd->temp_pool, &arg)) != '\0') { if (!strcasecmp(str, "max")) { cur = limit->rlim_max; } @@ -88,7 +88,7 @@ AP_DECLARE(void) ap_unixd_set_rlimit(cmd_parms *cmd, struct rlimit **plimit, return; } - if (arg2 && (*(str = ap_getword_conf(cmd->pool, &arg2)) != '\0')) { + if (arg2 && (*(str = ap_getword_conf(cmd->temp_pool, &arg2)) != '\0')) { max = atol(str); } diff --git a/server/mpm_common.c b/server/mpm_common.c index 387c5cd06b..d5b446d2c5 100644 --- a/server/mpm_common.c +++ b/server/mpm_common.c @@ -360,7 +360,7 @@ const char *ap_mpm_set_coredumpdir(cmd_parms *cmd, void *dummy, return err; } - fname = ap_server_root_relative(cmd->pool, arg); + fname = ap_server_root_relative(cmd->temp_pool, arg); if (!fname) { return apr_pstrcat(cmd->pool, "Invalid CoreDumpDirectory path ", arg, NULL); |
