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

Kunal Joshi kunal1.joshi at intel.com
Wed Sep 28 06:39:11 UTC 2022


v1:
Free up allocated resources and close drm_fd

Signed-off-by: Kunal Joshi <kunal1.joshi at intel.com>
Reviewed-by: Jeevan B <jeevan.b 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