It looks like there's a memory leak in cmd_find_window_exec. This
function calls cmd_find_window_match, which allocates memory to
find_data.list_ctx using xstrdup or xasprintf.
cmd_find_window_exec then uses this allocated string in a call to
format_add, but never frees it. I've attached a patch which should
fix this.
diff --git a/cmd-find-window.c b/cmd-find-window.c
index bef9afe..89ff16f 100644
--- a/cmd-find-window.c
+++ b/cmd-find-window.c
@@ -190,6 +190,7 @@ cmd_find_window_exec(struct cmd *self, struct cmd_q *cmdq)
format_add(cdata->ft, "line", "%u", i);
format_add(cdata->ft, "window_find_matches", "%s",
ARRAY_ITEM(&find_list, i).list_ctx);
+ free(ARRAY_ITEM(&find_list, i).list_ctx);
format_session(cdata->ft, s);
format_winlink(cdata->ft, s, wm);
format_window_pane(cdata->ft, wm->window->active);
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos. Get
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users