]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: Destroy `http_err_chunks` members during deinit
authorTim Duesterhus <tim@bastelstu.be>
Tue, 26 Apr 2022 21:35:07 +0000 (23:35 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 26 Apr 2022 21:39:43 +0000 (23:39 +0200)
commit2b7fa9d6684c8990a40bc0a730f040cfb9f44744
treea2c181c7e00d961af3aa8bb8e634c257fed2dc49
parenteab175771dc907d3280d173d721267ead67a4dd7
CLEANUP: Destroy `http_err_chunks` members during deinit

To make the deinit function a proper inverse of the init function we need to
free the `http_err_chunks`:

    ==252081== 311,296 bytes in 19 blocks are still reachable in loss record 50 of 50
    ==252081==    at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
    ==252081==    by 0x2727EE: http_str_to_htx (http_htx.c:914)
    ==252081==    by 0x272E60: http_htx_init (http_htx.c:1059)
    ==252081==    by 0x26AC87: check_config_validity (cfgparse.c:4170)
    ==252081==    by 0x155DFE: init (haproxy.c:2120)
    ==252081==    by 0x155DFE: main (haproxy.c:3037)
src/http_htx.c