]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: cache: Fix leak of cconf->c.name during config check
authorTim Duesterhus <tim@bastelstu.be>
Mon, 14 Sep 2020 16:01:33 +0000 (18:01 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 7 Oct 2020 12:07:29 +0000 (14:07 +0200)
commitd7c6e6a71d34ec028365c4d4c96063b3d5e0e3a4
treec99c3f3db7ea888ad42a89856cd417c88a5f8752
parenta10000305f65265f51cb9aa7cb86409c794126d2
CLEANUP: cache: Fix leak of cconf->c.name during config check

During the config check, the post parsing is not performed. Thus, cache filters
are not fully initialized and their cache name are never released. To be able to
release them, a flag is now set when a cache filter is fully initialized. On
deinit, if the flag is not set, it means the cache name must be freed.

The patch should fix #849. No backport needed.

[Cf: Tim is the patch author, but I added the commit message]
src/cache.c