BUG/MINOR: log: fix minor resource leaks on logformat error path
As reported by Ilya in issue #392, Coverity found that we're leaking
allocated strings on error paths in parse_logformat(). Let's use a
proper exit label for failures instead of seeding return 0 everywhere.
This should be backported to all supported versions.
(cherry picked from commit 51013e82d4931c4f0ce6f7fc99788a39cc6960ed)
Signed-off-by: Willy Tarreau <w@1wt.eu>
(cherry picked from commit f58f3a0fb818903610432cdb8f98060cffd9af29)
Signed-off-by: Willy Tarreau <w@1wt.eu>
1 file changed