From e6ad75c1c4763f649f19c367b041ce7d13dcc789 Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Thu, 17 Oct 2013 14:09:52 +0200 Subject: [PATCH] tests/debugfs_pipe_crc: fix fb leak Also remove the unused connector_t->mode. Signed-off-by: Daniel Vetter --- tests/debugfs_pipe_crc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/debugfs_pipe_crc.c b/tests/debugfs_pipe_crc.c index f9ebac9..256ff29 100644 --- a/tests/debugfs_pipe_crc.c +++ b/tests/debugfs_pipe_crc.c @@ -34,7 +34,6 @@ typedef struct { struct kmstest_connector_config config; - drmModeModeInfo mode; struct kmstest_fb fb; bool valid; } connector_t; @@ -191,6 +190,7 @@ static void test_read_crc(data_t *data) free(crcs); igt_pipe_crc_free(pipe_crc); + kmstest_remove_fb(data->drm_fd, &connector->fb); } static void exit_handler(int sig) -- 2.7.4