From 148ef0124f290f8cff49eeb0731a8aa1ef4b4665 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Thu, 26 Jul 2012 23:03:57 -0400 Subject: [PATCH] compositor-drm: Don't leak output->name --- src/compositor-drm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/compositor-drm.c b/src/compositor-drm.c index 7ed544b5..bc75a004 100644 --- a/src/compositor-drm.c +++ b/src/compositor-drm.c @@ -815,6 +815,7 @@ drm_output_destroy(struct weston_output *output_base) weston_output_destroy(&output->base); wl_list_remove(&output->base.link); + free(output->name); free(output); } @@ -1456,6 +1457,7 @@ err_free: drmModeFreeCrtc(output->original_crtc); ec->crtc_allocator &= ~(1 << output->crtc_id); ec->connector_allocator &= ~(1 << output->connector_id); + free(output->name); free(output); return -1;