mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Merge pull request #3114 from airween/v3/sonarmemleakfix
fix: Sonarcloud memleak fixes
This commit is contained in:
@@ -480,9 +480,14 @@ int main(int argc, char **argv) {
|
||||
ModSecurityTest<RegressionTest> test;
|
||||
|
||||
std::string ver(MODSECURITY_VERSION);
|
||||
std::string envvar("MODSECURITY=ModSecurity " + ver + " regression tests");
|
||||
std::string envvar("ModSecurity " + ver + " regression tests");
|
||||
|
||||
#ifndef WIN32
|
||||
setenv("MODSECURITY", envvar.c_str(), 1);
|
||||
#else
|
||||
_putenv_s("MODSECURITY", envvar.c_str());
|
||||
#endif
|
||||
|
||||
putenv(strdup(envvar.c_str()));
|
||||
#ifndef NO_LOGS
|
||||
int test_number = 0;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user