[PATCH weston v2 2/9] wayland-backend: fix memory leak of display_name

Benoit Gschwind gschwind at gnu-log.net
Thu Apr 28 18:33:09 UTC 2016


Signed-off-by: Benoit Gschwind <gschwind at gnu-log.net>
---
 src/compositor-wayland.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/compositor-wayland.c b/src/compositor-wayland.c
index 8577a74..0bfd3ad 100644
--- a/src/compositor-wayland.c
+++ b/src/compositor-wayland.c
@@ -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;
 }
-- 
2.7.3



More information about the wayland-devel mailing list