mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 07:37:02 +02:00
BUG/MINOR: acl: fix a double free during exit when using PCRE_JIT
When freeing ACL regex, we don't want to perform the free() in regex_free() as it's already performed in free_pattern(). The double free only happens when using PCRE_JIT when freeing everything during exit so it's harmless but exhibits libc errors during a reload/restart. Bug reported by Seri.
This commit is contained in:
parent
7c41a1b59b
commit
dd11293e84
@ -79,7 +79,6 @@ static inline void regex_free(regex *preg) {
|
||||
#ifdef USE_PCRE_JIT
|
||||
pcre_free_study(preg->extra);
|
||||
pcre_free(preg->reg);
|
||||
free(preg);
|
||||
#else
|
||||
regfree(preg);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user