Remi Tricot-Le Breton
23db8c664b
BUG/MINOR: http: Memory leak of http redirect rules' format string
When the configuration contains such a line: http-request redirect location / a "struct logformat_node" object is created and it contains an "arg" member which gets alloc'ed as well in which we copy the new location (see add_to_logformat_list). This internal arg pointer was not freed in the dedicated release_http_redir release function. Likewise, the expression pointer was not released as well. This patch can be backported to all stable branches. It should apply as-is all the way to 2.2 but it won't on 2.0 because release_http_redir did not exist yet. (cherry picked from commit 3120284c29f8f4c25458c432c544786657e5db26) Signed-off-by: Willy Tarreau <w@1wt.eu> (cherry picked from commit fe5f84ae3eddbfbb34b1fd9b08b50c6246358279) Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
The HAProxy documentation has been split into a number of different files for ease of use. Please refer to the following files depending on what you're looking for : - INSTALL for instructions on how to build and install HAProxy - BRANCHES to understand the project's life cycle and what version to use - LICENSE for the project's license - CONTRIBUTING for the process to follow to submit contributions The more detailed documentation is located into the doc/ directory : - doc/intro.txt for a quick introduction on HAProxy - doc/configuration.txt for the configuration's reference manual - doc/lua.txt for the Lua's reference manual - doc/SPOE.txt for how to use the SPOE engine - doc/network-namespaces.txt for how to use network namespaces under Linux - doc/management.txt for the management guide - doc/regression-testing.txt for how to use the regression testing suite - doc/peers.txt for the peers protocol reference - doc/coding-style.txt for how to adopt HAProxy's coding style - doc/internals for developer-specific documentation (not all up to date)
Description
Languages
Shell
100%