]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: pattern: fix memory leak in regex pattern functions
authorDragan Dosen <ddosen@haproxy.com>
Mon, 29 Apr 2019 23:03:26 +0000 (01:03 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 2 May 2019 08:05:11 +0000 (10:05 +0200)
commite99af978c81ecbe9ecad3dd799231d454755b6a9
tree28419d0b5e60b7bdf4e3b3d6d7de0b01b0f1a072
parent026ef570e16364db5247120d12f0320377a49272
BUG/MEDIUM: pattern: fix memory leak in regex pattern functions

The allocated regex is not freed properly and can cause a memory leak,
eg. when patterns are updated via CLI socket.

This patch should be backported to all supported versions.
src/pattern.c