]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: lru: fix possible memory leak when ->free() is used
authorWilly Tarreau <w@1wt.eu>
Wed, 17 Jun 2015 18:33:30 +0000 (20:33 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 17 Jun 2015 18:33:30 +0000 (20:33 +0200)
commit57b8a53f03bc8a442fa3d90f9d763439912e31bb
tree3e889e56d65d9eb52704b75a733d27daadd4f8ac
parentce7b4def7415be6dad293db08f39650ce24c3827
BUG/MEDIUM: lru: fix possible memory leak when ->free() is used

Commit 7810ad7 ("BUG/MAJOR: lru: fix unconditional call to free due to
unexpected semi-colon") was not enough, it happens that the free() is
not performed at the right place because if the evicted node is recycled,
we must also release its data before it gets overwritten.

No backport is needed.
src/lru.c