mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-15 23:55:03 +03:00
fix memory in transaction.cc when log REMOTE_USER
This commit is contained in:
parent
3975f0f8fa
commit
6b7f2b0d63
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user