BUG/MINOR: sink: fix errors handling in cfg_post_parse_ring()

Multiple error paths (memory,IO related) in cfg_post_parse_ring() were
not implemented correcly and could result in memory leak or undefined
behavior.

Fixing them all at once.

This can be backported in 2.4

(cherry picked from commit 9859e00981fa29d6ab8dfa5bfc479aefb0a1bcf5)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
1 file changed