From 1a08d1196ac4e8adfb6c90967ebdfe19c19e9310 Mon Sep 17 00:00:00 2001 From: "U. Artie Eoff" Date: Fri, 17 Jan 2014 12:22:50 -0800 Subject: [PATCH] compositor-wayland: don't free unallocated memory Assigning a string constant (i.e. memory that we didn't allocate) to a char* pointer and then freeing that pointer is bad news. Signed-off-by: U. Artie Eoff --- src/compositor-wayland.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compositor-wayland.c b/src/compositor-wayland.c index d2d894274..8ddc8bcd7 100644 --- a/src/compositor-wayland.c +++ b/src/compositor-wayland.c @@ -879,7 +879,7 @@ wayland_output_create_for_config(struct wayland_compositor *c, name = str; } if (!name) - name = WINDOW_TITLE; + name = strdup(WINDOW_TITLE); weston_config_section_get_string(config_section, "mode", &mode, "1024x600");