changeset 8613:3dacf96b4020 v7.4.1596

commit https://github.com/vim/vim/commit/ba8cd122ef60a7c71a7723be0d635f0c2d4556ab Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 19 14:16:39 2016 +0100 patch 7.4.1596 Problem: Memory leak. (Coverity) Solution: Free the pattern.
author Christian Brabandt <cb@256bit.org>
date Sat, 19 Mar 2016 14:30:05 +0100
parents 6e76a0cca2b5
children 71b70b86bd32
files src/ex_cmds2.c src/version.c
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ex_cmds2.c
+++ b/src/ex_cmds2.c
@@ -3404,6 +3404,7 @@ add_pack_plugin(char_u *fname, void *coo
 	    vim_free(cmd);
 	}
 #endif
+	vim_free(pat);
     }
 
 theend:
--- 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,