diff mbox

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

Message ID 1388419013-17016-3-git-send-email-przanoni@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Paulo Zanoni Dec. 30, 2013, 3:56 p.m. UTC
From: Paulo Zanoni <paulo.r.zanoni@intel.com>

Caught by Valgrind.

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

Patch

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:
 		;
 	}