patch 7.4.1596 v7.4.1596
authorBram Moolenaar <Bram@vim.org>
Sat, 19 Mar 2016 13:16:39 +0000 (14:16 +0100)
committerBram 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
src/version.c

index 0a9895a35708e7e1c182e6fe43ea45a50ea3b917..c03c2405622b509adbc288e208b321b51125e20d 100644 (file)
@@ -3404,6 +3404,7 @@ add_pack_plugin(char_u *fname, void *cookie)
            vim_free(cmd);
        }
 #endif
+       vim_free(pat);
     }
 
 theend:
index bc817d7396f4bdcd5dafc4836040dd1a153e0b57..081d14c46fc8f4b204af5125d67145df3508a051 100644 (file)
@@ -748,6 +748,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1596,
 /**/
     1595,
 /**/