mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-03-27 07:58:59 -04:00
backend/drm: Free current_modeinfo on error
This commit is contained in:
parent
0d9ffef774
commit
153dea9c28
1 changed files with 1 additions and 0 deletions
|
|
@ -1469,6 +1469,7 @@ static bool connect_drm_connector(struct wlr_drm_connector *wlr_conn,
|
||||||
struct wlr_drm_mode *mode = drm_mode_create(&drm_conn->modes[i]);
|
struct wlr_drm_mode *mode = drm_mode_create(&drm_conn->modes[i]);
|
||||||
if (!mode) {
|
if (!mode) {
|
||||||
wlr_log_errno(WLR_ERROR, "Allocation failed");
|
wlr_log_errno(WLR_ERROR, "Allocation failed");
|
||||||
|
free(current_modeinfo);
|
||||||
wlr_output_state_finish(&state);
|
wlr_output_state_finish(&state);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue