From 7da0af8855c1ecf075dc6019d9b711d969219722 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ville=20Syrj=C3=A4l=C3=A4?= Date: Mon, 4 Mar 2013 15:34:07 +0200 Subject: [PATCH] kms_flip: Don't access freed data MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Ville Syrjälä Signed-off-by: Daniel Vetter --- tests/kms_flip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/kms_flip.c b/tests/kms_flip.c index cd8954c..596d07a 100644 --- a/tests/kms_flip.c +++ b/tests/kms_flip.c @@ -491,8 +491,8 @@ static void recreate_fb(struct test_output *o) o->bpp, fb_info->stride, r->handle, &new_fb_id)); - drmFree(r); gem_close(drm_fd, r->handle); + drmFree(r); do_or_die(drmModeRmFB(drm_fd, fb_info->fb_id)); o->fb_ids[o->current_fb_id] = new_fb_id; -- 2.7.4