]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: deviceatlas: fix resource leaks on init error paths
authorDavid Carlier <dcarlier@deviceatlas.com>
Sat, 14 Feb 2026 13:23:57 +0000 (13:23 +0000)
committerWilly Tarreau <w@1wt.eu>
Sat, 14 Feb 2026 13:47:22 +0000 (14:47 +0100)
commitd8f219b380aaa60682cbe945ea24de961aa9fd2b
tree33cc7b2be4dedbd9ae6a6aa3a63e53e4751650a7
parent6342705ceeff6744f90027caa476b7a757d49cdc
BUG/MEDIUM: deviceatlas: fix resource leaks on init error paths

When da_atlas_compile() or da_atlas_open() failed in init_deviceatlas(),
atlasimgptr was leaked and da_fini() was never called. Also add a NULL
check on strdup() for the default cookie name with proper cleanup of
the atlas and image pointer on failure.

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