patch 7.4.1865
Problem: Memory leaks in tet49. (Dominique Pelle)
Solution: Use NULL instead of an empty string.
diff --git a/src/eval.c b/src/eval.c
index adfe8f8..3d0abf3 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -5298,7 +5298,7 @@
* what follows. So set it here. */
if (rettv->v_type == VAR_UNKNOWN && !evaluate && **arg == '(')
{
- rettv->vval.v_string = vim_strsave((char_u *)"");
+ rettv->vval.v_string = NULL;
rettv->v_type = VAR_FUNC;
}
diff --git a/src/version.c b/src/version.c
index a934fe7..7952a14 100644
--- a/src/version.c
+++ b/src/version.c
@@ -754,6 +754,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1865,
+/**/
1864,
/**/
1863,