=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/format.c,v retrieving revision 1.127 retrieving revision 1.128 diff -u -r1.127 -r1.128 --- src/usr.bin/tmux/format.c 2017/04/20 09:20:22 1.127 +++ src/usr.bin/tmux/format.c 2017/04/20 09:39:07 1.128 @@ -1,4 +1,4 @@ -/* $OpenBSD: format.c,v 1.127 2017/04/20 09:20:22 nicm Exp $ */ +/* $OpenBSD: format.c,v 1.128 2017/04/20 09:39:07 nicm Exp $ */ /* * Copyright (c) 2011 Nicholas Marriott @@ -1237,17 +1237,14 @@ struct winlink *wl) { struct window *w = wl->window; - char *flags; if (ft->w == NULL) ft->w = wl->window; - flags = window_printable_flags(s, wl); - format_defaults_window(ft, w); format_add(ft, "window_index", "%d", wl->idx); - format_add(ft, "window_flags", "%s", flags); + format_add(ft, "window_flags", "%s", window_printable_flags(s, wl)); format_add(ft, "window_active", "%d", wl == s->curw); format_add(ft, "window_bell_flag", "%d", @@ -1259,8 +1256,6 @@ format_add(ft, "window_last_flag", "%d", !!(wl == TAILQ_FIRST(&s->lastw))); format_add(ft, "window_linked", "%d", session_is_linked(s, wl->window)); - - free(flags); } /* Set default format keys for a window pane. */