backend/drm: Free drm device name on error

master
Kenny Levinsen 7 months ago
parent 3aef433f97
commit be667b0628

@ -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;
} }

Loading…
Cancel
Save