]>
Commit | Line | Data |
---|---|---|
05b5d6bc AG |
1 | To: vim-dev@vim.org |
2 | Subject: Patch 6.2.358 | |
3 | Fcc: outbox | |
4 | From: Bram Moolenaar <Bram@moolenaar.net> | |
5 | Mime-Version: 1.0 | |
6 | Content-Type: text/plain; charset=ISO-8859-1 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ------------ | |
9 | ||
10 | Patch 6.2.358 (after 6.2.299) | |
11 | Problem: Memory leak when using ":help" and the language doesn't match. | |
12 | Solution: Free the array with matching tags. | |
13 | Files: src/ex_cmds.c | |
14 | ||
15 | ||
16 | *** ../vim-6.2.357/src/ex_cmds.c Sat Mar 13 14:28:50 2004 | |
17 | --- src/ex_cmds.c Mon Mar 15 10:51:09 2004 | |
18 | *************** | |
19 | *** 4627,4632 **** | |
20 | --- 4627,4634 ---- | |
21 | else | |
22 | #endif | |
23 | EMSG2(_("E149: Sorry, no help for %s"), arg); | |
24 | + if (n != FAIL) | |
25 | + FreeWild(num_matches, matches); | |
26 | return; | |
27 | } | |
28 | ||
29 | *** ../vim-6.2.357/src/version.c Mon Mar 15 12:26:21 2004 | |
30 | --- src/version.c Mon Mar 15 12:27:39 2004 | |
31 | *************** | |
32 | *** 639,640 **** | |
33 | --- 639,642 ---- | |
34 | { /* Add new patch number below this line */ | |
35 | + /**/ | |
36 | + 358, | |
37 | /**/ | |
38 | ||
39 | -- | |
40 | "So this is it," said Arthur, "we are going to die." | |
41 | "Yes," said Ford, "except...no! Wait a minute!" He suddenly lunged across | |
42 | the chamber at something behind Arthur's line of vision. "What's this | |
43 | switch?" he cried. | |
44 | "What? Where?" cried Arthur, twisting around. | |
45 | "No, I was only fooling," said Ford, "we are going to die after all." | |
46 | -- Douglas Adams, "The Hitchhiker's Guide to the Galaxy" | |
47 | ||
48 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
49 | /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
50 | \\\ Project leader for A-A-P -- http://www.A-A-P.org /// | |
51 | \\\ Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html /// |