mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 11:44:32 +03:00
Fixes regarding memory management
Fixes assorted issues identified by valgrind.
This commit is contained in:
@@ -25,12 +25,12 @@ namespace modsecurity {
|
||||
namespace operators {
|
||||
|
||||
|
||||
bool IpMatch::init(const std::string &file, const char **error) {
|
||||
bool IpMatch::init(const std::string &file, std::string *error) {
|
||||
std::string e("");
|
||||
bool res = m_tree.addFromBuffer(param, &e);
|
||||
|
||||
if (res == false) {
|
||||
*error = e.c_str();
|
||||
error->assign(e);
|
||||
}
|
||||
|
||||
return res;
|
||||
|
Reference in New Issue
Block a user