mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +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(),
|
||||
trace_scanning(false),
|
||||
trace_parsing(false),
|
||||
lastRule(NULL) {
|
||||
m_auditLog = new audit_log::AuditLog();
|
||||
m_auditLog->refCountIncrease();
|
||||
}
|
||||
lastRule(NULL) { }
|
||||
|
||||
|
||||
Driver::~Driver() {
|
||||
if (m_auditLog != NULL) {
|
||||
m_auditLog->refCountDecreaseAndCheck();
|
||||
}
|
||||
delete loc.back();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user