The branch, master has been updated
via 28544391f5b478d215131c7b1d63590f7338e692 (commit)
from 931b0103cda864466b7e357d298d2c4de0a7f5d5 (commit)
- Log -----------------------------------------------------------------
commit 28544391f5b478d215131c7b1d63590f7338e692
Author: Nicholas Marriott <[email protected]>
Commit: Nicholas Marriott <[email protected]>
Do not leak formats in status_replace.
---
status.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/status.c b/status.c
index 13ea9a5..636f627 100644
--- a/status.c
+++ b/status.c
@@ -503,7 +503,7 @@ status_replace(struct client *c, struct session *s, struct
winlink *wl,
struct window_pane *wp, const char *fmt, time_t t, int jobsflag)
{
static char out[BUFSIZ];
- char in[BUFSIZ], ch, *iptr, *optr;
+ char in[BUFSIZ], ch, *iptr, *optr, *expanded;
size_t len;
struct format_tree *ft;
@@ -542,7 +542,9 @@ status_replace(struct client *c, struct session *s, struct
winlink *wl,
format_session(ft, s);
format_winlink(ft, s, wl);
format_window_pane(ft, wp);
- return (format_expand(ft, out));
+ expanded = format_expand(ft, out);
+ format_free(ft);
+ return (expanded);
}
/* Figure out job name and get its result, starting it off if necessary. */
-----------------------------------------------------------------------
Summary of changes:
status.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
hooks/post-receive
--
tmux
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs