[PATCH weston 8/9] compositor-drm: free filename in exit

Pekka Paalanen ppaalanen at gmail.com
Fri Feb 9 13:07:26 UTC 2018


From: Pekka Paalanen <pekka.paalanen at collabora.co.uk>

Spotted by Valgrind.

Signed-off-by: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
---
 libweston/compositor-drm.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libweston/compositor-drm.c b/libweston/compositor-drm.c
index a975b379..636da9e8 100644
--- a/libweston/compositor-drm.c
+++ b/libweston/compositor-drm.c
@@ -5233,6 +5233,7 @@ drm_destroy(struct weston_compositor *ec)
 	wl_array_release(&b->unused_connectors);
 
 	close(b->drm.fd);
+	free(b->drm.filename);
 	free(b);
 }
 
-- 
2.13.6



More information about the wayland-devel mailing list