diff options
author | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2021-10-26 18:54:51 +0200 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2021-10-27 07:30:36 -0600 |
commit | a92293a15a9ace8abca2a3e3f785ab816f62be42 (patch) | |
tree | 9879f2bff55d0ce4d0e545f011c5a0223ae002ef /backend | |
parent | 6666604f177739de963271b57a76a62ff64359d1 (diff) |
backend/drm/legacy.c: Fix memory leak in drm_legacy_crtc_set_gamma
Found via scan-build
Diffstat (limited to 'backend')
-rw-r--r-- | backend/drm/legacy.c | 1 |
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; } |