[Intel-gfx] [PATCH i-g-t 10/12] testdisplay: Free the array of connectors
Damien Lespiau
damien.lespiau at intel.com
Fri Sep 6 21:08:48 CEST 2013
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 at intel.com>
---
tests/testdisplay.c | 2 ++
1 file changed, 2 insertions(+)
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;
}
--
1.8.3.1
More information about the Intel-gfx
mailing list