From be667b0628420ea80f2869b1195639b1b9f3dce5 Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Tue, 30 Apr 2024 10:16:08 +0200 Subject: [PATCH] backend/drm: Free drm device name on error --- backend/drm/backend.c | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/drm/backend.c b/backend/drm/backend.c index 5c0c77bd..d166f467 100644 --- a/backend/drm/backend.c +++ b/backend/drm/backend.c @@ -281,6 +281,7 @@ error_fd: wl_list_remove(&drm->dev_change.link); wl_list_remove(&drm->parent_destroy.link); wlr_session_close_file(drm->session, dev); + free(drm->name); free(drm); return NULL; }