backend/drm: Free drm device name on error

master
Kenny Levinsen 8 months ago
parent 3aef433f97
commit be667b0628

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

Loading…
Cancel
Save