compositor-drm: Don't leak output->name

Kristian Høgsberg 12 years ago
parent 9ca38464cb
commit 148ef0124f
  1. 2
      src/compositor-drm.c

@ -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…
Cancel
Save