diff mbox

[i-g-t,10/12] testdisplay: Free the array of connectors

Message ID 1378494530-3600-11-git-send-email-damien.lespiau@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Lespiau, Damien Sept. 6, 2013, 7:08 p.m. UTC
That's an array we allocated earlier in this function. Let's be symetric
and free it once done.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
---
 tests/testdisplay.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox

Patch

diff --git a/tests/testdisplay.c b/tests/testdisplay.c
index 3a9eab7..00d777a 100644
--- a/tests/testdisplay.c
+++ b/tests/testdisplay.c
@@ -457,6 +457,8 @@  int update_display(void)
 
 		}
 	}
+
+	free(connectors);
 	drmModeFreeResources(resources);
 	return 1;
 }