From ba8cd122ef60a7c71a7723be0d635f0c2d4556ab Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 19 Mar 2016 14:16:39 +0100 Subject: [PATCH] patch 7.4.1596 Problem: Memory leak. (Coverity) Solution: Free the pattern. --- src/ex_cmds2.c | 1 + src/version.c | 2 ++ 2 files changed, 3 insertions(+) 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 @@ -748,6 +748,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1596, /**/ 1595, /**/