mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-08 05:28:05 +02:00
compositor-drm: Don't leak output->name
This commit is contained in:
parent
9ca38464cb
commit
148ef0124f
1 changed files with 2 additions and 0 deletions
|
|
@ -815,6 +815,7 @@ drm_output_destroy(struct weston_output *output_base)
|
|||
weston_output_destroy(&output->base);
|
||||
wl_list_remove(&output->base.link);
|
||||
|
||||
free(output->name);
|
||||
free(output);
|
||||
}
|
||||
|
||||
|
|
@ -1456,6 +1457,7 @@ err_free:
|
|||
drmModeFreeCrtc(output->original_crtc);
|
||||
ec->crtc_allocator &= ~(1 << output->crtc_id);
|
||||
ec->connector_allocator &= ~(1 << output->connector_id);
|
||||
free(output->name);
|
||||
free(output);
|
||||
|
||||
return -1;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue