mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-01 03:57:47 +03:00
Properly deal with classes destructors
There are some classes such as AuditLog that demands a reference count. That is needed because this class can be used by different instances of the Rules classes.
This commit is contained in:
@@ -34,6 +34,11 @@
|
||||
namespace ModSecurity {
|
||||
|
||||
|
||||
AuditLog::~AuditLog() {
|
||||
m_writer->refCountDecreaseAndCheck();
|
||||
}
|
||||
|
||||
|
||||
bool AuditLog::setStorageDirMode(int permission) {
|
||||
this->directoryPermission = permission;
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user