My patch isn't correct. It misses the case where there's only 1 item
in find_list.
I've attached a new patch which should correctly free the memory.
On Thu, May 1, 2014 at 1:48 AM, J Raynor wrote:
> It looks like there's a memory leak in cmd_find_window_exec.
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