]> git.pld-linux.org Git - packages/vim.git/blob - 7.2.135
- new
[packages/vim.git] / 7.2.135
1 To: vim-dev@vim.org
2 Subject: Patch 7.2.135
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.2.135
11 Problem:    Memory leak when redefining user command with complete argument.
12 Solution:   Free the old complete argument. (Dominique Pelle)
13 Files:      src/ex_docmd.c
14
15
16 *** ../vim-7.2.134/src/ex_docmd.c       Sun Mar  1 02:43:50 2009
17 --- src/ex_docmd.c      Wed Mar 11 11:13:31 2009
18 ***************
19 *** 5124,5130 ****
20             }
21   
22             vim_free(cmd->uc_rep);
23 !           cmd->uc_rep = 0;
24             break;
25         }
26   
27 --- 5124,5134 ----
28             }
29   
30             vim_free(cmd->uc_rep);
31 !           cmd->uc_rep = NULL;
32 ! #if defined(FEAT_EVAL) && defined(FEAT_CMDL_COMPL)
33 !           vim_free(cmd->uc_compl_arg);
34 !           cmd->uc_compl_arg = NULL;
35 ! #endif
36             break;
37         }
38   
39 ***************
40 *** 5941,5947 ****
41       for (;;)
42       {
43         p = cmd->uc_rep;    /* source */
44 !       q = buf;            /* destinateion */
45         totlen = 0;
46   
47         for (;;)
48 --- 5945,5951 ----
49       for (;;)
50       {
51         p = cmd->uc_rep;    /* source */
52 !       q = buf;            /* destination */
53         totlen = 0;
54   
55         for (;;)
56 ***************
57 *** 7846,7851 ****
58 --- 7850,7858 ----
59   {
60       vim_free(prev_dir);
61       prev_dir = NULL;
62
63 +     vim_free(globaldir);
64 +     globaldir = NULL;
65   }
66   #endif
67   
68 *** ../vim-7.2.134/src/version.c        Wed Mar 11 13:09:30 2009
69 --- src/version.c       Wed Mar 11 15:06:23 2009
70 ***************
71 *** 678,679 ****
72 --- 678,681 ----
73   {   /* Add new patch number below this line */
74 + /**/
75 +     135,
76   /**/
77
78 -- 
79 hundred-and-one symptoms of being an internet addict:
80 194. Your business cards contain your e-mail and home page address.
81
82  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
83 ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
84 \\\        download, build and distribute -- http://www.A-A-P.org        ///
85  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
This page took 0.067547 seconds and 3 git commands to generate.