From: Christophe Jaillet Date: Wed, 1 Nov 2017 20:29:12 +0000 (+0000) Subject: Save a few bytes in the conf pool when handling 'ProxyHTMLDoctype' directive with... X-Git-Tag: 2.5.0-alpha~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71cc1a7e741f06ce26f342ba8de61110286189b9;p=thirdparty%2Fapache%2Fhttpd.git Save a few bytes in the conf pool when handling 'ProxyHTMLDoctype' directive with a user defined FPI git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1813991 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/filters/mod_proxy_html.c b/modules/filters/mod_proxy_html.c index 62f2bee2e3e..743f1437806 100644 --- a/modules/filters/mod_proxy_html.c +++ b/modules/filters/mod_proxy_html.c @@ -1181,7 +1181,7 @@ static const char *set_doctype(cmd_parms *cmd, void *CFG, cfg->doctype = fpi_html5; } else { - cfg->doctype = apr_pstrdup(cmd->pool, t); + cfg->doctype = t; if (l && ((l[0] == 'x') || (l[0] == 'X'))) cfg->etag = xhtml_etag; else