mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-15 23:55:03 +03:00
Use pcre_free_study() while freeing if using PCRE_study
This commit is contained in:
parent
15e717afe7
commit
df7335b35a
@ -21,10 +21,14 @@
|
||||
static apr_status_t msc_pcre_cleanup(msc_regex_t *regex) {
|
||||
if (regex != NULL) {
|
||||
if (regex->pe != NULL) {
|
||||
#ifdef WITH_PCRE_STUDY
|
||||
pcre_free_study(regex->pe);
|
||||
#else
|
||||
#if defined(VERSION_NGINX)
|
||||
pcre_free(regex->pe);
|
||||
#else
|
||||
free(regex->pe);
|
||||
#endif
|
||||
#endif
|
||||
regex->pe = NULL;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user