mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-15 23:55:03 +03:00
Using `clear' to clean up lists instead of clean via integration
This commit is contained in:
parent
163483e8d4
commit
71970915b1
@ -38,10 +38,10 @@ Collections::Collections() {
|
|||||||
|
|
||||||
|
|
||||||
Collections::~Collections() {
|
Collections::~Collections() {
|
||||||
for (auto &a : *this) {
|
for (const auto &thing : *this) {
|
||||||
this->erase(a.first);
|
delete thing.second;
|
||||||
delete a.second;
|
|
||||||
}
|
}
|
||||||
|
this->clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -35,9 +35,7 @@ Variables::Variables() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Variables::~Variables() {
|
Variables::~Variables() {
|
||||||
for (auto &a : *this) {
|
this->clear();
|
||||||
this->erase(a.first);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Variables::store(std::string key, std::string value) {
|
void Variables::store(std::string key, std::string value) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user