Fix memory leak in screen_redraw_make_pane_status.

pull/1247/head
nicm 2017-12-22 23:16:41 +00:00
parent 7ba5ad4cfb
commit c363c236aa
1 changed files with 2 additions and 0 deletions

View File

@ -18,6 +18,7 @@
#include <sys/types.h>
#include <stdlib.h>
#include <string.h>
#include "tmux.h"
@ -299,6 +300,7 @@ screen_redraw_make_pane_status(struct client *c, struct window *w,
screen_write_cnputs(&ctx, outlen, &gc, "%s", out);
screen_write_stop(&ctx);
free(out);
format_free(ft);
wp->status_size = outlen;