Skip to content

Commit

Permalink
compositor-wayland: fix memory leak of display_name
Browse files Browse the repository at this point in the history
Signed-off-by: Benoit Gschwind <gschwind@gnu-log.net>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
  • Loading branch information
gschwind authored and ppaalanen committed May 4, 2016
1 parent 37a6807 commit 079b626
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/compositor-wayland.c
Original file line number Diff line number Diff line change
Expand Up @@ -2440,9 +2440,11 @@ backend_init(struct weston_compositor *compositor, int *argc, char *argv[],
MODIFIER_CTRL | MODIFIER_ALT,
fullscreen_binding, b);

free(new_config.display_name);
return 0;

err_outputs:
wayland_backend_destroy(b);
free(new_config.display_name);
return -1;
}

0 comments on commit 079b626

Please sign in to comment.