From: nicm Date: Fri, 22 Dec 2017 23:16:41 +0000 (+0000) Subject: Fix memory leak in screen_redraw_make_pane_status. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=2afe06f282488b68e5756904bd03118ca94ec12b;p=openbsd Fix memory leak in screen_redraw_make_pane_status. --- diff --git a/usr.bin/tmux/screen-redraw.c b/usr.bin/tmux/screen-redraw.c index 963595dcb1a..1a801564679 100644 --- a/usr.bin/tmux/screen-redraw.c +++ b/usr.bin/tmux/screen-redraw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: screen-redraw.c,v 1.47 2017/10/16 19:30:53 nicm Exp $ */ +/* $OpenBSD: screen-redraw.c,v 1.48 2017/12/22 23:16:41 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -18,6 +18,7 @@ #include +#include #include #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;