]> git.pld-linux.org Git - packages/vim.git/blob - 7.1.230
- updated to 7.1.285
[packages/vim.git] / 7.1.230
1 To: vim-dev@vim.org
2 Subject: Patch 7.1.230
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.230
11 Problem:    Memory leak when executing SourceCmd autocommands.
12 Solution:   Free the memory. (Dominique Pelle)
13 Files:      src/ex_cmds2.c
14
15
16 *** ../vim-7.1.229/src/ex_cmds2.c       Sun Jan  6 20:05:36 2008
17 --- src/ex_cmds2.c      Tue Jan 15 20:41:28 2008
18 ***************
19 *** 2889,2899 ****
20       if (has_autocmd(EVENT_SOURCECMD, fname_exp, NULL)
21             && apply_autocmds(EVENT_SOURCECMD, fname_exp, fname_exp,
22                                                                FALSE, curbuf))
23   # ifdef FEAT_EVAL
24 !       return aborting() ? FAIL : OK;
25   # else
26 !       return OK;
27   # endif
28   
29       /* Apply SourcePre autocommands, they may get the file. */
30       apply_autocmds(EVENT_SOURCEPRE, fname_exp, fname_exp, FALSE, curbuf);
31 --- 2889,2902 ----
32       if (has_autocmd(EVENT_SOURCECMD, fname_exp, NULL)
33             && apply_autocmds(EVENT_SOURCECMD, fname_exp, fname_exp,
34                                                                FALSE, curbuf))
35 +     {
36   # ifdef FEAT_EVAL
37 !       retval = aborting() ? FAIL : OK;
38   # else
39 !       retval = OK;
40   # endif
41 +       goto theend;
42 +     }
43   
44       /* Apply SourcePre autocommands, they may get the file. */
45       apply_autocmds(EVENT_SOURCEPRE, fname_exp, fname_exp, FALSE, curbuf);
46 *** ../vim-7.1.229/src/version.c        Mon Jan 14 20:11:37 2008
47 --- src/version.c       Tue Jan 15 22:15:03 2008
48 ***************
49 *** 668,669 ****
50 --- 668,671 ----
51   {   /* Add new patch number below this line */
52 + /**/
53 +     230,
54   /**/
55
56 -- 
57 Citizens are not allowed to attend a movie house or theater nor ride in a
58 public streetcar within at least four hours after eating garlic.
59                 [real standing law in Indiana, United States of America]
60
61  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
62 ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
63 \\\        download, build and distribute -- http://www.A-A-P.org        ///
64  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
This page took 0.04062 seconds and 3 git commands to generate.