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