[Intel-gfx] [PATCH 3/6] tests/kms_flip: don't leak the connector when setting DPMS

Paulo Zanoni przanoni at gmail.com
Mon Dec 30 16:56:50 CET 2013


From: Paulo Zanoni <paulo.r.zanoni at intel.com>

Caught by Valgrind.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni at intel.com>
---
 tests/kms_flip.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/kms_flip.c b/tests/kms_flip.c
index eaa42b5..80f4d76 100644
--- a/tests/kms_flip.c
+++ b/tests/kms_flip.c
@@ -295,6 +295,8 @@ static void dpms_off_other_outputs(struct test_output *o)
 
 		set_connector_dpms(connector,  DRM_MODE_DPMS_ON);
 		set_connector_dpms(connector,  DRM_MODE_DPMS_OFF);
+
+		drmModeFreeConnector(connector);
 next:
 		;
 	}
-- 
1.8.3.1




More information about the Intel-gfx mailing list