From: Daniel Vetter Date: Thu, 17 Oct 2013 12:09:52 +0000 (+0200) Subject: tests/debugfs_pipe_crc: fix fb leak X-Git-Tag: intel-gpu-tools-1.5~86 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e6ad75c1c4763f649f19c367b041ce7d13dcc789;p=profile%2Fextras%2Fintel-gpu-tools.git tests/debugfs_pipe_crc: fix fb leak Also remove the unused connector_t->mode. Signed-off-by: Daniel Vetter --- 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)