BUG/MAJOR: patterns: fix double free caused by loading strings from files
authorWilly Tarreau <w@1wt.eu>
Mon, 16 Dec 2013 09:40:28 +0000 (10:40 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 16 Dec 2013 09:40:28 +0000 (10:40 +0100)
commit6762a3061ac0d1d8c8860a2191c602a3c526205c
tree4153e5defa76b6bcbb45de1f7e22de285a4fc930
parent2cff2f7bb87c000b979a36b35c405c35d9e18da5
BUG/MAJOR: patterns: fix double free caused by loading strings from files

A null pointer assignment was missing after a free in commit 7148ce6 (MEDIUM:
pattern: Extract the index process from the pat_parse_*() functions), causing
a double free after loading a file of string patterns.

This bug was introduced in 1.5-dev20, no backport is needed.

Thanks to Sander Klein for reporting this bug and providing the config
needed to trigger it.
src/pattern.c