diff options
author | nicm <nicm> | 2017-12-22 23:16:41 +0000 |
---|---|---|
committer | nicm <nicm> | 2017-12-22 23:16:41 +0000 |
commit | c363c236aaea5b7a879493d8f3c85bead546f063 (patch) | |
tree | 5c37044048bf1c595df72e532d7083976577925e /screen-redraw.c | |
parent | 7ba5ad4cfb49a5de3971f823ba5d08d4760480c2 (diff) | |
download | rtmux-c363c236aaea5b7a879493d8f3c85bead546f063.tar.gz rtmux-c363c236aaea5b7a879493d8f3c85bead546f063.tar.bz2 rtmux-c363c236aaea5b7a879493d8f3c85bead546f063.zip |
Fix memory leak in screen_redraw_make_pane_status.
Diffstat (limited to 'screen-redraw.c')
-rw-r--r-- | screen-redraw.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/screen-redraw.c b/screen-redraw.c index 7a31182a..1083642d 100644 --- a/screen-redraw.c +++ b/screen-redraw.c @@ -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; |