mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-03 21:13:50 +03:00
Handles better the memory utilization
- Added reference counts to Rule and AuditLog; - Some memory leaks were removed, including GeoLookup; - Deal better with parser errors; - Overriding the AutlogLogWritter destructor.
This commit is contained in:
@@ -32,6 +32,7 @@ Driver::Driver()
|
||||
|
||||
|
||||
Driver::~Driver() {
|
||||
delete loc.back();
|
||||
}
|
||||
|
||||
|
||||
@@ -70,7 +71,7 @@ int Driver::addSecRule(Rule *rule) {
|
||||
|
||||
|
||||
int Driver::parse(const std::string &f, const std::string &ref) {
|
||||
loc.push_back(*(new yy::location()));
|
||||
loc.push_back(new yy::location());
|
||||
if (ref.empty()) {
|
||||
this->ref.push_back("<<reference missing or not informed>>");
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user