mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Fix memory leak in the regression utility
This commit is contained in:
@@ -71,7 +71,9 @@ void actions(ModSecurityTestResults<RegressionTest> *r,
|
||||
r->status = it.status;
|
||||
}
|
||||
if (it.url != NULL) {
|
||||
r->location = it.url;
|
||||
r->location.append(it.url);
|
||||
free(it.url);
|
||||
it.url = NULL;
|
||||
}
|
||||
if (it.log != NULL) {
|
||||
free(it.log);
|
||||
|
Reference in New Issue
Block a user