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
No known key found for this signature in database
GPG Key ID: E6DFB08CE8B11277

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