summaryrefslogtreecommitdiff
path: root/tests/testdisplay.c
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2013-09-04 14:21:55 +0100
committerDamien Lespiau <damien.lespiau@intel.com>2013-09-30 18:04:22 +0100
commit5d996349137e368c7ad8a3b2ce708c77c006a2db (patch)
tree9b871c5057f229493d6ae6792b2ae637b5402b65 /tests/testdisplay.c
parent66477a230fba36a349783020b77ed4a030f204f5 (diff)
testdisplay: Free the array of connectors
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>
Diffstat (limited to 'tests/testdisplay.c')
-rw-r--r--tests/testdisplay.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/testdisplay.c b/tests/testdisplay.c
index 3a9eab75..00d777af 100644
--- a/tests/testdisplay.c
+++ b/tests/testdisplay.c
@@ -457,6 +457,8 @@ int update_display(void)
}
}
+
+ free(connectors);
drmModeFreeResources(resources);
return 1;
}