File: upstream-189017c078.diff

package info (click to toggle)
tmux 1.9-6
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,912 kB
  • ctags: 3,263
  • sloc: ansic: 32,468; sh: 4,311; awk: 339; makefile: 248
file content (17 lines) | stat: -rw-r--r-- 448 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
commit 189017c078b7870c18ced485c1fd99f65fcc4801
Author: nicm <nicm>
Date:   Thu May 8 06:06:07 2014 +0000

    Plug a memory leak, from J Raynor.

--- a/cmd-find-window.c
+++ b/cmd-find-window.c
@@ -199,6 +199,8 @@
 	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);
 }