diff options
author | Kenny Levinsen <kl@kl.wtf> | 2024-02-22 00:34:06 +0100 |
---|---|---|
committer | Kenny Levinsen <kl@kl.wtf> | 2024-02-22 00:40:54 +0100 |
commit | 153dea9c28a9a38aef1693774e6eee8bfe226302 (patch) | |
tree | e3dc1987e24e99d88d9fb0858f7c97eedceda584 /backend | |
parent | 0d9ffef7747402734803441d312034926bff951e (diff) |
backend/drm: Free current_modeinfo on error
Diffstat (limited to 'backend')
-rw-r--r-- | backend/drm/drm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c index fd6bf513..6a319635 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -1469,6 +1469,7 @@ static bool connect_drm_connector(struct wlr_drm_connector *wlr_conn, struct wlr_drm_mode *mode = drm_mode_create(&drm_conn->modes[i]); if (!mode) { wlr_log_errno(WLR_ERROR, "Allocation failed"); + free(current_modeinfo); wlr_output_state_finish(&state); return false; } |