]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: sample: Memory leak of sample_expr structure in case of error
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Tue, 12 Jan 2021 13:55:12 +0000 (14:55 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 12 Jan 2021 16:00:59 +0000 (17:00 +0100)
commit22e0d9b39cfb238e7bf866b3d78aa9b393004508
treee1796b12bbb09eaf0288a652aca020cf81dc4433
parenta1eea3bbb1973f3becc4603c3bbad4e96af3361f
BUG/MINOR: sample: Memory leak of sample_expr structure in case of error

If an errors occurs during the sample expression parsing, the alloced
sample_expr is not freed despite having its main pointer reset.

This fixes GitHub issue #1046.
It could be backported as far as 1.8.
src/sample.c