mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2026-01-14 23:47:11 +03:00
Fix memory leak freeing compiled regex (MODSEC-138).
This commit is contained in:
4
CHANGES
4
CHANGES
@@ -1,6 +1,8 @@
|
|||||||
05 Feb 2010 - 2.5.13-dev1
|
14 Feb 2010 - 2.5.13-dev1
|
||||||
-------------------------
|
-------------------------
|
||||||
|
|
||||||
|
* Fix memory leak freeing regex. Discovered by Tom Donovan.
|
||||||
|
|
||||||
* Fix some portability issues on Windows.
|
* Fix some portability issues on Windows.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ apr_status_t msc_pcre_cleanup(msc_regex_t *regex) {
|
|||||||
regex->pe = NULL;
|
regex->pe = NULL;
|
||||||
}
|
}
|
||||||
if (regex->re != NULL) {
|
if (regex->re != NULL) {
|
||||||
free(regex->re);
|
pcre_free(regex->re);
|
||||||
regex->re = NULL;
|
regex->re = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user