[Issue #113] Fixed memory leak in disabled tests
This commit is contained in:
parent
95d7ed4356
commit
0d53444087
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue