mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 03:34:29 +03:00
Merge pull request #2727 from liudongmiao/patch-1
fix memory leak when concurrent log includes REMOTE_USER
This commit is contained in:
@@ -1508,6 +1508,9 @@ std::string Transaction::toOldAuditLogFormatIndex(const std::string &filename,
|
||||
variables::RemoteUser *r = new variables::RemoteUser("REMOTE_USER");
|
||||
std::vector<const VariableValue *> l;
|
||||
r->evaluate(this, NULL, &l);
|
||||
for (auto &a : l) {
|
||||
delete a;
|
||||
}
|
||||
delete r;
|
||||
|
||||
ss << utils::string::dash_if_empty(
|
||||
|
Reference in New Issue
Block a user