Fix memory leak on the regression tests

This commit is contained in:
Felipe Zimmerle
2016-12-28 10:16:53 -03:00
parent f62dc287c9
commit 8bd5f03a3d

View File

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