From: Pekka Paalanen Date: Thu, 7 Dec 2017 14:05:29 +0000 (+0200) Subject: compositor-drm: free filename in exit X-Git-Tag: upstream/5.0.0~275 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9bf4f371632567a6abc8d4303fb5021ac7547c86;p=platform%2Fupstream%2Fweston.git compositor-drm: free filename in exit Spotted by Valgrind. Signed-off-by: Pekka Paalanen Reviewed-by: Ian Ray Reviewed-by: Daniel Stone --- 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); }