From d10a0a8c4156fef6ac64362bf046411f57a3ed5f Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Sat, 5 May 2018 16:48:10 +1000 Subject: Fix memory leak in title_format command --- sway/commands/title_format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sway/commands') diff --git a/sway/commands/title_format.c b/sway/commands/title_format.c index a2f6e6ff..26ddb2f4 100644 --- a/sway/commands/title_format.c +++ b/sway/commands/title_format.c @@ -23,7 +23,7 @@ struct cmd_results *cmd_title_format(int argc, char **argv) { if (view->title_format) { free(view->title_format); } - view->title_format = strdup(format); + view->title_format = format; view_update_title(view, true); config_find_font_height(true); arrange_root(); -- cgit v1.2.3