mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-10-30 07:30:46 +00:00
backend/drm: Free drm device name on error
This commit is contained in:
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…
Reference in New Issue
Block a user