From 96f665cabb3038905a8a9839dae025f5156ae80e Mon Sep 17 00:00:00 2001 From: Ben Widawsky Date: Tue, 8 Oct 2013 20:32:12 -0700 Subject: [PATCH] gem_tiled_blits: Squash bo leak on simulation Signed-off-by: Ben Widawsky --- tests/gem_tiled_blits.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/gem_tiled_blits.c b/tests/gem_tiled_blits.c index 9a13096..2b8b74d 100644 --- a/tests/gem_tiled_blits.c +++ b/tests/gem_tiled_blits.c @@ -150,6 +150,8 @@ static void run_test(int count) check_bo(bo[i], bo_start_val[i]); if (igt_run_in_simulation()) { + for (i = 0; i < count; i++) + drm_intel_bo_unreference(bo[i]); free(bo_start_val); free(bo); return; -- 2.7.4