projects
/
vim
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0a1d7f
)
patch 7.4.1596
v7.4.1596
author
Bram Moolenaar
<Bram@vim.org>
Sat, 19 Mar 2016 13:16:39 +0000
(14:16 +0100)
committer
Bram Moolenaar
<Bram@vim.org>
Sat, 19 Mar 2016 13:16:39 +0000
(14:16 +0100)
Problem: Memory leak. (Coverity)
Solution: Free the pattern.
src/ex_cmds2.c
patch
|
blob
|
history
src/version.c
patch
|
blob
|
history
diff --git
a/src/ex_cmds2.c
b/src/ex_cmds2.c
index 0a9895a35708e7e1c182e6fe43ea45a50ea3b917..c03c2405622b509adbc288e208b321b51125e20d 100644
(file)
--- a/
src/ex_cmds2.c
+++ b/
src/ex_cmds2.c
@@
-3404,6
+3404,7
@@
add_pack_plugin(char_u *fname, void *cookie)
vim_free(cmd);
}
#endif
+ vim_free(pat);
}
theend:
diff --git
a/src/version.c
b/src/version.c
index bc817d7396f4bdcd5dafc4836040dd1a153e0b57..081d14c46fc8f4b204af5125d67145df3508a051 100644
(file)
--- a/
src/version.c
+++ b/
src/version.c
@@
-748,6
+748,8
@@
static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1596,
/**/
1595,
/**/