From 9bf4f371632567a6abc8d4303fb5021ac7547c86 Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Thu, 7 Dec 2017 16:05:29 +0200 Subject: [PATCH] compositor-drm: free filename in exit Spotted by Valgrind. Signed-off-by: Pekka Paalanen Reviewed-by: Ian Ray Reviewed-by: Daniel Stone --- libweston/compositor-drm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libweston/compositor-drm.c b/libweston/compositor-drm.c index e1953d7..d2773f4 100644 --- a/libweston/compositor-drm.c +++ b/libweston/compositor-drm.c @@ -5229,6 +5229,7 @@ drm_destroy(struct weston_compositor *ec) wl_array_release(&b->unused_connectors); close(b->drm.fd); + free(b->drm.filename); free(b); } -- 2.7.4