mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 19:47:47 +03:00
Fixes regarding memory management
Fixes assorted issues identified by valgrind.
This commit is contained in:
@@ -40,17 +40,16 @@ void DebugLogWriter::open(const std::string& fileName) {
|
||||
|
||||
|
||||
void DebugLogWriter::close(const std::string& fileName) {
|
||||
#if 0
|
||||
std::map<std::string, DebugLogWriterAgent *>::iterator it;
|
||||
DebugLogWriterAgent *agent;
|
||||
it = agents.find(fileName);
|
||||
if (it != agents.end()) {
|
||||
agent = it->second;
|
||||
if (agent->refCountDecreaseAndCheck()) {
|
||||
delete agent;
|
||||
agents.erase(it);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user