mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Fix memory leak on the regression tests
This commit is contained in:
parent
f62dc287c9
commit
8bd5f03a3d
@ -66,6 +66,10 @@ void actions(ModSecurityTestResults<RegressionTest> *r,
|
||||
if (it.url != NULL) {
|
||||
r->location = it.url;
|
||||
}
|
||||
if (it.log != NULL) {
|
||||
free(it.log);
|
||||
it.log = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user