From 8ec0c56b0237bd0db5960aa742e42276f6284b8c Mon Sep 17 00:00:00 2001 From: Stefan Fritsch Date: Sun, 15 Jul 2012 21:19:54 +0000 Subject: [PATCH] Code clean up (remove useless memory allocation) Submitted by: Christophe JAILLET PR: 52648 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1361803 13f79535-47bb-0310-9956-ffa450edef68 --- modules/arch/win32/mod_isapi.c | 2 +- modules/generators/mod_asis.c | 2 +- modules/generators/mod_cgi.c | 2 +- modules/generators/mod_cgid.c | 2 +- modules/http/http_request.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/arch/win32/mod_isapi.c b/modules/arch/win32/mod_isapi.c index d77ff6882f..f6cb99a260 100644 --- a/modules/arch/win32/mod_isapi.c +++ b/modules/arch/win32/mod_isapi.c @@ -894,7 +894,7 @@ static int APR_THREAD_FUNC regfnServerSupportFunction(isapi_cid *cid, } /* Reset the method to GET */ - r->method = apr_pstrdup(r->pool, "GET"); + r->method = "GET"; r->method_number = M_GET; /* Don't let anyone think there's still data */ diff --git a/modules/generators/mod_asis.c b/modules/generators/mod_asis.c index 1fc14389a5..c947e30360 100644 --- a/modules/generators/mod_asis.c +++ b/modules/generators/mod_asis.c @@ -70,7 +70,7 @@ static int asis_handler(request_rec *r) /* This redirect needs to be a GET no matter what the original * method was. */ - r->method = apr_pstrdup(r->pool, "GET"); + r->method = "GET"; r->method_number = M_GET; ap_internal_redirect_handler(location, r); diff --git a/modules/generators/mod_cgi.c b/modules/generators/mod_cgi.c index 385bb36495..a609654524 100644 --- a/modules/generators/mod_cgi.c +++ b/modules/generators/mod_cgi.c @@ -993,7 +993,7 @@ static int cgi_handler(request_rec *r) /* This redirect needs to be a GET no matter what the original * method was. */ - r->method = apr_pstrdup(r->pool, "GET"); + r->method = "GET"; r->method_number = M_GET; /* We already read the message body (if any), so don't allow diff --git a/modules/generators/mod_cgid.c b/modules/generators/mod_cgid.c index 5cf7cf5895..56d3524330 100644 --- a/modules/generators/mod_cgid.c +++ b/modules/generators/mod_cgid.c @@ -1594,7 +1594,7 @@ static int cgid_handler(request_rec *r) /* This redirect needs to be a GET no matter what the original * method was. */ - r->method = apr_pstrdup(r->pool, "GET"); + r->method = "GET"; r->method_number = M_GET; /* We already read the message body (if any), so don't allow diff --git a/modules/http/http_request.c b/modules/http/http_request.c index ce16de922b..21c6debd60 100644 --- a/modules/http/http_request.c +++ b/modules/http/http_request.c @@ -197,7 +197,7 @@ AP_DECLARE(void) ap_die(int type, request_rec *r) "error-notes")) != NULL) { apr_table_setn(r->subprocess_env, "ERROR_NOTES", error_notes); } - r->method = apr_pstrdup(r->pool, "GET"); + r->method = "GET"; r->method_number = M_GET; ap_internal_redirect(custom_response, r); return; -- 2.40.0