]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: log: free errmsg on error in cfg_parse_log_forward()
authorAurelien DARRAGON <adarragon@haproxy.com>
Tue, 4 Jul 2023 13:36:45 +0000 (15:36 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 10 Jul 2023 16:28:08 +0000 (18:28 +0200)
commit9f9d557468befde23be828df5f35f529079bebd0
treeeb0eff2526796c0f126eb37f4a171aa472252587
parent21cf42f5792af8324ab164991984b87c93018012
BUG/MINOR: log: free errmsg on error in cfg_parse_log_forward()

When leaving cfg_parse_log_forward() on error paths, errmsg which is local
to the function could still point to valid data, and it's our
responsibility to free it.

Instead of freeing it everywhere it is invoved, we free it prior to
leaving the function.

This should be backported as far as 2.4.
src/log.c