mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +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:
@@ -49,7 +49,7 @@ class Rules : public RulesProperties {
|
||||
Rules()
|
||||
: RulesProperties(NULL) { }
|
||||
|
||||
Rules(DebugLog *customLog)
|
||||
explicit Rules(DebugLog *customLog)
|
||||
: RulesProperties(customLog) { }
|
||||
|
||||
~Rules();
|
||||
@@ -75,6 +75,7 @@ class Rules : public RulesProperties {
|
||||
std::ostringstream parserError;
|
||||
|
||||
DebugLog *debugLog;
|
||||
|
||||
private:
|
||||
int m_referenceCount;
|
||||
};
|
||||
|
Reference in New Issue
Block a user