mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 03:34:29 +03:00
Removes reference count form Actions
This commit is contained in:
@@ -43,8 +43,7 @@ class Action {
|
|||||||
temporaryAction(false),
|
temporaryAction(false),
|
||||||
action_kind(2),
|
action_kind(2),
|
||||||
m_name(""),
|
m_name(""),
|
||||||
m_parser_payload(""),
|
m_parser_payload("") {
|
||||||
m_referenceCount(1) {
|
|
||||||
set_name_and_payload(_action);
|
set_name_and_payload(_action);
|
||||||
}
|
}
|
||||||
explicit Action(const std::string& _action, int kind)
|
explicit Action(const std::string& _action, int kind)
|
||||||
@@ -52,8 +51,7 @@ class Action {
|
|||||||
temporaryAction(false),
|
temporaryAction(false),
|
||||||
action_kind(kind),
|
action_kind(kind),
|
||||||
m_name(""),
|
m_name(""),
|
||||||
m_parser_payload(""),
|
m_parser_payload("") {
|
||||||
m_referenceCount(1) {
|
|
||||||
set_name_and_payload(_action);
|
set_name_and_payload(_action);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -92,19 +90,6 @@ class Action {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int refCountDecreaseAndCheck() {
|
|
||||||
this->m_referenceCount--;
|
|
||||||
if (this->m_referenceCount == 0) {
|
|
||||||
delete this;
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
void refCountIncrease() {
|
|
||||||
this->m_referenceCount++;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool m_isNone;
|
bool m_isNone;
|
||||||
bool temporaryAction;
|
bool temporaryAction;
|
||||||
int action_kind;
|
int action_kind;
|
||||||
@@ -142,9 +127,6 @@ class Action {
|
|||||||
*/
|
*/
|
||||||
RunTimeOnlyIfMatchKind,
|
RunTimeOnlyIfMatchKind,
|
||||||
};
|
};
|
||||||
|
|
||||||
private:
|
|
||||||
int m_referenceCount;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user