]> git.pld-linux.org Git - packages/vim.git/blame - 7.2.135
- new
[packages/vim.git] / 7.2.135
CommitLineData
478508cd
ER
1To: vim-dev@vim.org
2Subject: Patch 7.2.135
3Fcc: outbox
4From: Bram Moolenaar <Bram@moolenaar.net>
5Mime-Version: 1.0
6Content-Type: text/plain; charset=ISO-8859-1
7Content-Transfer-Encoding: 8bit
8------------
9
10Patch 7.2.135
11Problem: Memory leak when redefining user command with complete argument.
12Solution: Free the old complete argument. (Dominique Pelle)
13Files: 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--
79hundred-and-one symptoms of being an internet addict:
80194. 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.061814 seconds and 4 git commands to generate.