commit | d7c6e6a71d34ec028365c4d4c96063b3d5e0e3a4 | [log] [tgz] |
---|---|---|
author | Tim Duesterhus <tim@bastelstu.be> | Mon Sep 14 18:01:33 2020 +0200 |
committer | Christopher Faulet <cfaulet@haproxy.com> | Wed Oct 07 14:07:29 2020 +0200 |
tree | c99c3f3db7ea888ad42a89856cd417c88a5f8752 | |
parent | a10000305f65265f51cb9aa7cb86409c794126d2 [diff] |
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]