mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-06-17 15:08:21 +02:00
frontend: Don't leak config strings on failure to start drm backend
These strings all need to be freed even if we fail. Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
This commit is contained in:
parent
b3ba4e9e3d
commit
3dd86bfab7
1 changed files with 4 additions and 4 deletions
|
|
@ -4169,16 +4169,16 @@ load_drm_backend(struct weston_compositor *c, int *argc, char **argv,
|
|||
wb = wet_compositor_load_backend(c, WESTON_BACKEND_DRM, &config.base,
|
||||
drm_heads_changed, NULL);
|
||||
|
||||
free(config.gbm_format);
|
||||
free(config.seat_id);
|
||||
free(config.specific_device);
|
||||
|
||||
if (!wb)
|
||||
return -1;
|
||||
|
||||
|
||||
wet->drm_backend_loaded = true;
|
||||
|
||||
free(config.gbm_format);
|
||||
free(config.seat_id);
|
||||
free(config.specific_device);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue