aboutsummaryrefslogtreecommitdiff
path: root/backend/drm
diff options
context:
space:
mode:
Diffstat (limited to 'backend/drm')
-rw-r--r--backend/drm/legacy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/backend/drm/legacy.c b/backend/drm/legacy.c
index 37d8147a..7a711590 100644
--- a/backend/drm/legacy.c
+++ b/backend/drm/legacy.c
@@ -204,6 +204,7 @@ bool drm_legacy_crtc_set_gamma(struct wlr_drm_backend *drm,
if (drmModeCrtcSetGamma(drm->fd, crtc->id, size, r, g, b) != 0) {
wlr_log_errno(WLR_ERROR, "Failed to set gamma LUT on CRTC %"PRIu32,
crtc->id);
+ free(linear_lut);
return false;
}