mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Fixes regarding memory management
Fixes assorted issues identified by valgrind.
This commit is contained in:
@@ -39,6 +39,7 @@ namespace collection {
|
||||
|
||||
class Collection {
|
||||
public:
|
||||
virtual ~Collection() { };
|
||||
virtual void store(std::string key, std::string value) = 0;
|
||||
|
||||
virtual bool storeOrUpdateFirst(const std::string &key,
|
||||
|
@@ -36,7 +36,7 @@ class DebugLog {
|
||||
: m_debugLevel(-1),
|
||||
m_fileName("") { }
|
||||
|
||||
~DebugLog();
|
||||
virtual ~DebugLog();
|
||||
|
||||
virtual void write(int level, const std::string &msg);
|
||||
bool isLogFileSet();
|
||||
|
@@ -103,7 +103,7 @@ class RulesProperties {
|
||||
*/
|
||||
~RulesProperties() {
|
||||
delete m_debugLog;
|
||||
}
|
||||
};
|
||||
|
||||
std::vector<Rule *> rules[7];
|
||||
std::vector<Rule *> * getRulesForPhase(int phase) {
|
||||
|
Reference in New Issue
Block a user