]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: resolvers: Free opts on parse error in resolv_parse_do_resolve()
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 4 May 2026 12:59:24 +0000 (14:59 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 4 May 2026 14:33:56 +0000 (16:33 +0200)
commit1d54b9f70e627ffb3380c3f487afc9b3bc8794ed
tree5d7614d36bad8803247a83bd09b1aa4ac069c5dc
parent3b1db89283612b6a80965113e1bb987c7d9cdf9e
BUG/MINOR: resolvers: Free opts on parse error in resolv_parse_do_resolve()

The error handler at do_resolve_parse_error freed varname and resolvers_id
but missed freeing rule->arg.resolv.opts (allocated via calloc). Added
ha_free(&rule->arg.resolv.opts) to the cleanup path.

This patch could be backported to all stable branches.
src/resolvers.c