mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Deletes driver in case of parser failure
This avoids memory leaks.
This commit is contained in:
parent
808fd23358
commit
9a1faab668
@ -103,6 +103,7 @@ int Rules::loadFromUri(const char *uri) {
|
||||
|
||||
if (driver->parseFile(uri) == false) {
|
||||
m_parserError << driver->m_parserError.str();
|
||||
delete driver;
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user