mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-15 23:55:03 +03:00
Avoids a second initialization of the Audit Log class
This commit is contained in:
parent
557c29fd46
commit
808fd23358
@ -29,16 +29,10 @@ Driver::Driver()
|
|||||||
: RulesProperties(),
|
: RulesProperties(),
|
||||||
trace_scanning(false),
|
trace_scanning(false),
|
||||||
trace_parsing(false),
|
trace_parsing(false),
|
||||||
lastRule(NULL) {
|
lastRule(NULL) { }
|
||||||
m_auditLog = new audit_log::AuditLog();
|
|
||||||
m_auditLog->refCountIncrease();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
Driver::~Driver() {
|
Driver::~Driver() {
|
||||||
if (m_auditLog != NULL) {
|
|
||||||
m_auditLog->refCountDecreaseAndCheck();
|
|
||||||
}
|
|
||||||
delete loc.back();
|
delete loc.back();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user