[igt-dev] [PATCH i-g-t v1 5/5] tests/kms_hdmi_inject: test cleanup

Kunal Joshi kunal1.joshi at intel.com
Mon Sep 26 18:53:21 UTC 2022


-> Free resources
-> close drm_fd

Cc: Nidhi Gupta <nidhi1.gupta at intel.com>
Signed-off-by: Kunal Joshi <kunal1.joshi at intel.com>
---
 tests/kms_hdmi_inject.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/kms_hdmi_inject.c b/tests/kms_hdmi_inject.c
index abae0ab4..0bb51165 100644
--- a/tests/kms_hdmi_inject.c
+++ b/tests/kms_hdmi_inject.c
@@ -219,5 +219,7 @@ igt_main
 
 	igt_fixture {
 		drmModeFreeConnector(connector);
+		drmModeFreeResources(res);
+		close(drm_fd);
 	}
 }
-- 
2.25.1



More information about the igt-dev mailing list