]> granicus.if.org Git - apache/commitdiff
Merge r1813991 from trunk:
authorYann Ylavic <ylavic@apache.org>
Wed, 10 Jan 2018 22:00:18 +0000 (22:00 +0000)
committerYann Ylavic <ylavic@apache.org>
Wed, 10 Jan 2018 22:00:18 +0000 (22:00 +0000)
Save a few bytes in the conf pool when handling 'ProxyHTMLDoctype' directive with a user defined  FPI

Submitted by: jailletc36
Reviewed by: jailletc36, niq, jim

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1820798 13f79535-47bb-0310-9956-ffa450edef68

modules/filters/mod_proxy_html.c

index 569fa137753af73c2345f0ff21a33f797abc34c9..1ea005bf287e8903793b0f36aa11090ad50924bd 100644 (file)
@@ -1133,7 +1133,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