mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 11:44:32 +03:00
Removes some memory leaks
This commit is contained in:
@@ -41,6 +41,12 @@ std::list<transaction::Variable *> *
|
||||
count++;
|
||||
}
|
||||
|
||||
while (reslIn->empty() == false) {
|
||||
delete reslIn->front();
|
||||
reslIn->pop_front();
|
||||
}
|
||||
delete reslIn;
|
||||
|
||||
std::string res = std::to_string(count);
|
||||
|
||||
reslOut->push_back(new transaction::Variable(std::string(var->name),
|
||||
|
Reference in New Issue
Block a user