diff options
author | Vincent Vanlaer <vincent.vanlaer@skynet.be> | 2018-02-09 17:48:17 +0100 |
---|---|---|
committer | Vincent Vanlaer <vincent.vanlaer@skynet.be> | 2018-02-09 18:54:56 +0100 |
commit | b2f69416178d84e686e9024a262eaa1e18fdb966 (patch) | |
tree | 476abdce55baf04af85773f6bbbf6c51e5ce1957 | |
parent | 2df97ed16aa66f2e5f54b847b4389d4b1af5cc40 (diff) |
Free gamma when property blob creation fails
-rw-r--r-- | backend/drm/atomic.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |