From a4115915f41905b3f224c367c9cbf2aea4d70c69 Mon Sep 17 00:00:00 2001 From: Snaipe Date: Tue, 24 Mar 2015 01:56:17 +0100 Subject: [PATCH] Fixed memory leak for multiple suites --- src/stats.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/stats.c b/src/stats.c index 7066960..a817ec3 100644 --- a/src/stats.c +++ b/src/stats.c @@ -51,6 +51,7 @@ s_glob_stats *stats_init(void) { static void destroy_suite_stats(void *ptr, UNUSED void *meta) { s_suite_stats *stats = ptr; sfree(stats->tests); + sfree(stats->next); } s_suite_stats *suite_stats_init(struct criterion_suite *s) {