backend/drm: Free drm device name on error

This commit is contained in:
Kenny Levinsen 2024-04-30 10:16:08 +02:00
parent 3aef433f97
commit be667b0628

View File

@ -281,6 +281,7 @@ error_fd:
wl_list_remove(&drm->dev_change.link); wl_list_remove(&drm->dev_change.link);
wl_list_remove(&drm->parent_destroy.link); wl_list_remove(&drm->parent_destroy.link);
wlr_session_close_file(drm->session, dev); wlr_session_close_file(drm->session, dev);
free(drm->name);
free(drm); free(drm);
return NULL; return NULL;
} }