mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 11:16:33 +03:00
Fix memory leak on the regression tests
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user