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 0a9895a..c03c240 100644
--- a/src/ex_cmds2.c
+++ b/src/ex_cmds2.c
@@ -3404,6 +3404,7 @@
vim_free(cmd);
}
#endif
+ vim_free(pat);
}
theend:
diff --git a/src/version.c b/src/version.c
index bc817d7..081d14c 100644
--- a/src/version.c
+++ b/src/version.c
@@ -749,6 +749,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1596,
+/**/
1595,
/**/
1594,