diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-03-19 14:16:39 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-03-19 14:16:39 +0100 |
commit | ba8cd122ef60a7c71a7723be0d635f0c2d4556ab (patch) | |
tree | 9a7f8cde464e8e369c614e2e0104b889e8cde54f | |
parent | c0a1d7f3ad4d41b64c6c881bb8ad7c201f8439a3 (diff) |
patch 7.4.1596v7.4.1596
Problem: Memory leak. (Coverity)
Solution: Free the pattern.
-rw-r--r-- | src/ex_cmds2.c | 1 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c index 0a9895a357..c03c240562 100644 --- 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 bc817d7396..081d14c46f 100644 --- a/src/version.c +++ b/src/version.c @@ -749,6 +749,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1596, +/**/ 1595, /**/ 1594, |