[Issue #113] Fixed memory leak in disabled tests

This commit is contained in:
Snaipe 2016-03-25 10:44:01 +01:00
parent 95d7ed4356
commit 0d53444087

View file

@ -154,11 +154,11 @@ struct worker *run_next_test(struct criterion_test_set *p_set,
if (ctx->params.cleanup)
ctx->params.cleanup(&ctx->params);
} else {
ctx->test_stats = test_stats_init(ctx->test);
if (skip_disabled(ctx))
continue;
ctx->test_stats = test_stats_init(ctx->test);
worker = run_test(ctx->stats,
ctx->suite_stats,
ctx->test_stats,