mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-16 17:41:52 +03:00
Removes some memory leaks
This commit is contained in:
@@ -42,6 +42,7 @@ bool PmFromFile::init(const std::string &config, const char **error) {
|
||||
|
||||
if (((std::ifstream *)iss)->is_open() == false) {
|
||||
*error = std::string("Failed to open file: " + param).c_str();
|
||||
delete iss;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -52,6 +53,7 @@ bool PmFromFile::init(const std::string &config, const char **error) {
|
||||
|
||||
acmp_prepare(m_p);
|
||||
|
||||
delete iss;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user