mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-15 17:12:14 +03:00
Removes referece count from audit logs
This commit is contained in:
@@ -181,18 +181,6 @@ class AuditLog {
|
||||
std::string m_path2;
|
||||
std::string m_storage_dir;
|
||||
|
||||
void refCountIncrease() {
|
||||
m_refereceCount++;
|
||||
}
|
||||
|
||||
bool refCountDecreaseAndCheck() {
|
||||
m_refereceCount--;
|
||||
if (m_refereceCount == 0) {
|
||||
delete this;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
AuditLogFormat m_format;
|
||||
|
||||
protected:
|
||||
@@ -213,7 +201,6 @@ class AuditLog {
|
||||
std::string m_relevant;
|
||||
|
||||
audit_log::writer::Writer *m_writer;
|
||||
int m_refereceCount;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -61,8 +61,7 @@ AuditLog::AuditLog()
|
||||
m_type(NotSetAuditLogType),
|
||||
m_format(NotSetAuditLogFormat),
|
||||
m_relevant(""),
|
||||
m_writer(NULL),
|
||||
m_refereceCount(1) { }
|
||||
m_writer(NULL) { }
|
||||
|
||||
|
||||
AuditLog::~AuditLog() {
|
||||
|
||||
Reference in New Issue
Block a user