From a92293a15a9ace8abca2a3e3f785ab816f62be42 Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Tue, 26 Oct 2021 18:54:51 +0200 Subject: backend/drm/legacy.c: Fix memory leak in drm_legacy_crtc_set_gamma Found via scan-build --- backend/drm/legacy.c | 1 + 1 file changed, 1 insertion(+) (limited to 'backend') 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; } -- cgit v1.2.3