[Intel-gfx] [PATCH i-g-t 2/5] tests/igt_stats: Call igt_stats_fini() to not leak the array

Damien Lespiau damien.lespiau at intel.com
Thu Jun 25 16:26:56 PDT 2015


Sure, it'll be freed at exit(), but might as well be a bit pedantic.

Signed-off-by: Damien Lespiau <damien.lespiau at intel.com>
---
 lib/tests/igt_stats.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/tests/igt_stats.c b/lib/tests/igt_stats.c
index 3f45314..c20b453 100644
--- a/lib/tests/igt_stats.c
+++ b/lib/tests/igt_stats.c
@@ -41,6 +41,8 @@ static void test_mean(void)
 	mean = igt_stats_get_mean(&stats);
 
 	igt_assert(mean == (2 + 4 + 6 + 8 + 10) / 5.);
+
+	igt_stats_fini(&stats);
 }
 
 igt_simple_main
-- 
2.1.0



More information about the Intel-gfx mailing list