BUG/MINOR: sample: free err2 in smp_resolve_args for type ARGT_REG
authorDragan Dosen <ddosen@haproxy.com>
Thu, 17 Oct 2024 20:57:06 +0000 (22:57 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 18 Oct 2024 12:29:56 +0000 (14:29 +0200)
commit40ab88899cff8c4bcf667380b027ca6aefd4ce6d
tree3e576699aad3d37c0ec7b7a56f46cf95e4bc684d
parent9262b7109edb70a3ffb6496a003b0bf3c40ac92e
BUG/MINOR: sample: free err2 in smp_resolve_args for type ARGT_REG

The err2 may be leaking memory in case an error occurred as a result of
regex_comp() call.
src/sample.c