From: Bram Moolenaar Date: Sat, 19 Mar 2016 13:16:39 +0000 (+0100) Subject: patch 7.4.1596 X-Git-Tag: v7.4.1596 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ba8cd122ef60a7c71a7723be0d635f0c2d4556ab;p=vim patch 7.4.1596 Problem: Memory leak. (Coverity) Solution: Free the pattern. --- diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c index 0a9895a35..c03c24056 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 bc817d739..081d14c46 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, /**/