BUG/MINOR: cli: properly decrement ref count on tables during failed dumps
authorWilly Tarreau <w@1wt.eu>
Fri, 18 Nov 2016 18:17:40 +0000 (19:17 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 18 Nov 2016 18:20:09 +0000 (19:20 +0100)
commit2fe1b921639fd152092cead0fe0398ef0b15c5a3
tree12dddf82360ec22208b177f873a3f61325ef86a3
parent5179146fa35a74c46a4bf4bcd58c97696edc9810
BUG/MINOR: cli: properly decrement ref count on tables during failed dumps

Gernot Pörner reported some constant leak of ref counts for stick tables
entries. It happens that this leak was not at all in the regular traffic
path but on the "show table" path. An extra ref count was taken during
the dump if the output had to be paused, and it was released upon clean
termination or an error detected in the I/O handler. But the release
handler didn't do it, while it used to properly do it for the sessions
dump.

This fix needs to be backported to 1.6.
src/dumpstats.c