From 0d534440876a62184455034480b820e1776c34eb Mon Sep 17 00:00:00 2001 From: Snaipe Date: Fri, 25 Mar 2016 10:44:01 +0100 Subject: [PATCH] [Issue #113] Fixed memory leak in disabled tests --- src/core/runner_coroutine.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/runner_coroutine.c b/src/core/runner_coroutine.c index 57a091a..dc69756 100644 --- a/src/core/runner_coroutine.c +++ b/src/core/runner_coroutine.c @@ -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,