[PATCH i-g-t v1 3/3] tests/kms_3d: Add resources cleanup

Kamil Konieczny kamil.konieczny at linux.intel.com
Tue Aug 19 15:50:58 UTC 2025


Add resources cleanup at test end.

Signed-off-by: Kamil Konieczny <kamil.konieczny at linux.intel.com>
---
 tests/kms_3d.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/kms_3d.c b/tests/kms_3d.c
index f9734ba38..86254cdcb 100644
--- a/tests/kms_3d.c
+++ b/tests/kms_3d.c
@@ -135,6 +135,9 @@ igt_main
 			drmModeFreeConnector(connector);
 		}
 
+		if (res)
+			drmModeFreeResources(res);
+
 		drm_close_driver(drm_fd);
 	}
 }
-- 
2.51.0



More information about the igt-dev mailing list