]>
Commit | Line | Data |
---|---|---|
c0949972 ER |
1 | To: vim-dev@vim.org |
2 | Subject: patch 7.1.114 | |
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 7.1.114 | |
11 | Problem: Memory leak in getmatches(). | |
12 | Solution: Don't increment the refcount twice. | |
13 | Files: src/eval.c | |
14 | ||
15 | ||
16 | *** ../vim-7.1.113/src/eval.c Mon Sep 17 21:37:09 2007 | |
17 | --- src/eval.c Sun Sep 16 19:24:49 2007 | |
18 | *************** | |
19 | *** 10351,10357 **** | |
20 | dict = dict_alloc(); | |
21 | if (dict == NULL) | |
22 | return; | |
23 | - ++dict->dv_refcount; | |
24 | dict_add_nr_str(dict, "group", 0L, syn_id2name(cur->hlg_id)); | |
25 | dict_add_nr_str(dict, "pattern", 0L, cur->pattern); | |
26 | dict_add_nr_str(dict, "priority", (long)cur->priority, NULL); | |
27 | --- 10355,10360 ---- | |
28 | *** ../vim-7.1.113/src/version.c Mon Sep 17 21:37:09 2007 | |
29 | --- src/version.c Mon Sep 17 21:54:08 2007 | |
30 | *************** | |
31 | *** 668,669 **** | |
32 | --- 668,671 ---- | |
33 | { /* Add new patch number below this line */ | |
34 | + /**/ | |
35 | + 114, | |
36 | /**/ | |
37 | ||
38 | -- | |
39 | Be nice to your kids... they'll be the ones choosing your nursing home. | |
40 | ||
41 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
42 | /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
43 | \\\ download, build and distribute -- http://www.A-A-P.org /// | |
44 | \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |