From b2f69416178d84e686e9024a262eaa1e18fdb966 Mon Sep 17 00:00:00 2001 From: Vincent Vanlaer Date: Fri, 9 Feb 2018 17:48:17 +0100 Subject: Free gamma when property blob creation fails --- backend/drm/atomic.c | 1 + 1 file changed, 1 insertion(+) (limited to 'backend/drm') diff --git a/backend/drm/atomic.c b/backend/drm/atomic.c index 79765fef..164caf22 100644 --- a/backend/drm/atomic.c +++ b/backend/drm/atomic.c @@ -214,6 +214,7 @@ static bool atomic_crtc_set_gamma(struct wlr_drm_backend *drm, if (drmModeCreatePropertyBlob(drm->fd, gamma, sizeof(struct drm_color_lut) * size, &crtc->gamma_lut)) { wlr_log_errno(L_ERROR, "Unable to create property blob"); + free(gamma); return false; } -- cgit v1.2.3