mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-16 01:22:18 +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_path2;
|
||||||
std::string m_storage_dir;
|
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;
|
AuditLogFormat m_format;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
@@ -213,7 +201,6 @@ class AuditLog {
|
|||||||
std::string m_relevant;
|
std::string m_relevant;
|
||||||
|
|
||||||
audit_log::writer::Writer *m_writer;
|
audit_log::writer::Writer *m_writer;
|
||||||
int m_refereceCount;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -61,8 +61,7 @@ AuditLog::AuditLog()
|
|||||||
m_type(NotSetAuditLogType),
|
m_type(NotSetAuditLogType),
|
||||||
m_format(NotSetAuditLogFormat),
|
m_format(NotSetAuditLogFormat),
|
||||||
m_relevant(""),
|
m_relevant(""),
|
||||||
m_writer(NULL),
|
m_writer(NULL) { }
|
||||||
m_refereceCount(1) { }
|
|
||||||
|
|
||||||
|
|
||||||
AuditLog::~AuditLog() {
|
AuditLog::~AuditLog() {
|
||||||
|
|||||||
Reference in New Issue
Block a user