mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
regression: avoids memcheck complains
This commit is contained in:
parent
3b6cd701da
commit
c4caddbe2c
@ -434,8 +434,9 @@ int main(int argc, char **argv) {
|
||||
|
||||
std::string ver(MODSECURITY_VERSION);
|
||||
std::string envvar("MODSECURITY=ModSecurity " + ver + " regression tests");
|
||||
char *eenvvar = strdup(envvar.c_str());
|
||||
|
||||
putenv(strdup(envvar.c_str()));
|
||||
putenv(eenvvar);
|
||||
#ifndef NO_LOGS
|
||||
int test_number = 0;
|
||||
#endif
|
||||
@ -565,5 +566,6 @@ int main(int argc, char **argv) {
|
||||
}
|
||||
|
||||
#endif
|
||||
free(eenvvar);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user