mirror of
https://github.com/tmate-io/tmate.git
synced 2025-03-14 16:19:02 +01:00
Plug a memory leak, from J Raynor.
This commit is contained in:
parent
540f0b3e45
commit
189017c078
@ -200,6 +200,8 @@ cmd_find_window_exec(struct cmd *self, struct cmd_q *cmdq)
|
||||
window_choose_ready(wl->window->active, 0, cmd_find_window_callback);
|
||||
|
||||
out:
|
||||
for (i = 0; i < ARRAY_LENGTH(&find_list); i++)
|
||||
free(ARRAY_ITEM(&find_list, i).list_ctx);
|
||||
ARRAY_FREE(&find_list);
|
||||
return (CMD_RETURN_NORMAL);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user