Re: memory leak in cmd_find_window_exec

2014-05-03 Thread J Raynor
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.

memory leak in cmd_find_window_exec

2014-04-30 Thread J Raynor
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