|
1 To: [email protected] |
|
2 Subject: Patch 7.2.211 |
|
3 Fcc: outbox |
|
4 From: Bram Moolenaar <[email protected]> |
|
5 Mime-Version: 1.0 |
|
6 Content-Type: text/plain; charset=UTF-8 |
|
7 Content-Transfer-Encoding: 8bit |
|
8 ------------ |
|
9 |
|
10 Patch 7.2.211 |
|
11 Problem: Memory leak when expanding a series of file names. |
|
12 Solution: Use ga_clear_strings() instead of ga_clear(). |
|
13 Files: src/misc1.c |
|
14 |
|
15 |
|
16 *** ../vim-7.2.210/src/misc1.c 2009-05-17 13:30:58.000000000 +0200 |
|
17 --- src/misc1.c 2009-06-24 16:16:17.000000000 +0200 |
|
18 *************** |
|
19 *** 9193,9199 **** |
|
20 else if (vim_strpbrk(p, (char_u *)"$~") != NULL) |
|
21 { |
|
22 vim_free(p); |
|
23 ! ga_clear(&ga); |
|
24 i = mch_expand_wildcards(num_pat, pat, num_file, file, |
|
25 flags); |
|
26 recursive = FALSE; |
|
27 --- 9193,9199 ---- |
|
28 else if (vim_strpbrk(p, (char_u *)"$~") != NULL) |
|
29 { |
|
30 vim_free(p); |
|
31 ! ga_clear_strings(&ga); |
|
32 i = mch_expand_wildcards(num_pat, pat, num_file, file, |
|
33 flags); |
|
34 recursive = FALSE; |
|
35 *** ../vim-7.2.210/src/version.c 2009-06-24 11:57:53.000000000 +0200 |
|
36 --- src/version.c 2009-06-24 16:24:32.000000000 +0200 |
|
37 *************** |
|
38 *** 678,679 **** |
|
39 --- 678,681 ---- |
|
40 { /* Add new patch number below this line */ |
|
41 + /**/ |
|
42 + 211, |
|
43 /**/ |
|
44 |
|
45 -- |
|
46 hundred-and-one symptoms of being an internet addict: |
|
47 34. You laugh at people with 14400 baud modems. |
|
48 |
|
49 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ |
|
50 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ |
|
51 \\\ download, build and distribute -- http://www.A-A-P.org /// |
|
52 \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |