compositor: fix leak in load_drm_backend()

Leak found running drm-smoke-test with ASan.

Do not forget to free string specific_device in load_drm_backend().

Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
dev
Leandro Ribeiro 3 years ago committed by Daniel Stone
parent c826d8fa0d
commit bd4f250d48
  1. 1
      compositor/main.c

@ -2674,6 +2674,7 @@ load_drm_backend(struct weston_compositor *c,
free(config.gbm_format);
free(config.seat_id);
free(config.specific_device);
return ret;
}

Loading…
Cancel
Save