]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: pattern: release the reference on failure to load from file
authorWilly Tarreau <w@1wt.eu>
Thu, 30 Apr 2026 14:27:36 +0000 (16:27 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 30 Apr 2026 15:39:26 +0000 (17:39 +0200)
commitdc93168f224a3e3db11da4f708c2e3b515d5b5a6
treedeacba1d185e5b871d472c4e42e193728c693701
parentecb901ff6c573837bc96e92b5c0a74eb96b11a12
BUG/MINOR: pattern: release the reference on failure to load from file

In pattern_read_from_file(), in case of failure to load from the file,
the newly allocated reference remains attached to the list and is never
freed. Let's just do it.

This can be backported to all versions since it arrived in 1.5 with
commit 1e00d3853b ("MAJOR: pattern/map: Extends the map edition system
in the patterns").
src/pattern.c