]> granicus.if.org Git - apache/commit
Fix memory leak in mod_deflate.c when SetOutputFilter is enabled and DEFLATE
authorJustin Erenkrantz <jerenkrantz@apache.org>
Sun, 15 May 2011 11:05:36 +0000 (11:05 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Sun, 15 May 2011 11:05:36 +0000 (11:05 +0000)
commit66760617d0a703ae8e0557d9b2011033cc1fd6d8
treebb008d2cdcb2aed2fc4ed368b518b1e9f1e355d8
parent3867aa9ef445e6937863c39cc15254b96abc4ef4
Fix memory leak in mod_deflate.c when SetOutputFilter is enabled and DEFLATE
is the first filter in the chain - this is seen with mod_dav + mod_deflate
when the client can not do gzip and we constantly do the filter checks.

* modules/filters/mod_deflate.c
  (deflate_ctx): Add a flag as to whether we are successfully initialized.
  (deflate_out_filter): Always create filter ctx and set filter_init flag only
  after we are successfully initialized.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1103315 13f79535-47bb-0310-9956-ffa450edef68
modules/filters/mod_deflate.c