variable corruption with nested includes.
PR: 12655
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@179763
13f79535-47bb-0310-9956-
ffa450edef68
SSI_CREATE_ERROR_BUCKET(ctx, f, bb);
}
- /* destroy the sub request */
- if (rr) {
- ap_destroy_sub_req(rr);
- }
+ /* Do *not* destroy the subrequest here; it may have allocated
+ * variables in this r->subprocess_env in the subrequest's
+ * r->pool, so that pool must survive as long as this request.
+ * Yes, this is a memory leak. */
if (error_fmt) {
break;