mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-20 02:57:12 +03:00
Fix memory issues while resolving variables
This commit is contained in:
@@ -40,13 +40,12 @@ class XML_NoDictElement : public Variable {
|
||||
: Variable("XML"),
|
||||
m_plain("[XML document tree]"),
|
||||
m_var(&m_name, &m_plain) {
|
||||
m_var.m_dynamic = false;
|
||||
}
|
||||
|
||||
void evaluate(Transaction *transaction,
|
||||
Rule *rule,
|
||||
std::vector<const collection::Variable *> *l) override {
|
||||
l->push_back(&m_var);
|
||||
l->push_back(new collection::Variable(&m_var));
|
||||
}
|
||||
|
||||
std::string m_plain;
|
||||
|
||||
Reference in New Issue
Block a user