Fix memory leak in the regression utility

This commit is contained in:
Felipe Zimmerle 2017-07-04 11:01:11 -07:00
parent 52c5631ae7
commit 9ce7d022c2

View File

@ -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);