]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: compression: release the zlib pools between keep-alive requests
authorWilly Tarreau <w@1wt.eu>
Thu, 15 Nov 2012 15:41:22 +0000 (16:41 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 15 Nov 2012 15:41:22 +0000 (16:41 +0100)
commit543db62e1fc9da3a22f5ce91af52594372c8c64e
treecad275285b0f4c203adcdc547ba39418d9dde385
parentec3e3890f0deddc103b34522b7d271fa241b782f
BUG/MEDIUM: compression: release the zlib pools between keep-alive requests

There was a possible memory leak in the zlib code when the first response of
a keep-alive session was compressed, because the next request would reset the
compression algo, preventing a later call to session_free() from releasing it.
The reason is that it is necessary to release the assigned resources in
http_end_txn_clean_session().
src/proto_http.c
src/session.c