]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: deviceatlas: fix resource leak on hot-reload compile failure
authorDavid Carlier <dcarlier@deviceatlas.com>
Sat, 14 Feb 2026 13:24:01 +0000 (13:24 +0000)
committerWilly Tarreau <w@1wt.eu>
Sat, 14 Feb 2026 13:47:22 +0000 (14:47 +0100)
commitd8ff67659217321e8893d566a1c9fa441f5c01ce
tree8be922826ba69aa73bf100331890f5a5f232a124
parentea3b1bb866afba100f51709c388ad915a8c3e00f
BUG/MINOR: deviceatlas: fix resource leak on hot-reload compile failure

In da_haproxy_checkinst(), when da_atlas_compile() failed, the cnew
buffer was leaked. Add a free(cnew) in the else branch.

This should be backported to lower branches.
addons/deviceatlas/da.c