summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-06-01 22:08:17 +0200
committerBram Moolenaar <Bram@vim.org>2016-06-01 22:08:17 +0200
commit9ad73239c26467832a5b553b2a4b99d7ffbaa25e (patch)
tree78692621eed08764ddc93ca1b2b15a9ae8fadf31 /src
parent22081f4a3397704645841121d994058abd6cb481 (diff)
downloadvim-9ad73239c26467832a5b553b2a4b99d7ffbaa25e.zip
patch 7.4.1865
Problem: Memory leaks in tet49. (Dominique Pelle) Solution: Use NULL instead of an empty string.
Diffstat (limited to 'src')
-rw-r--r--src/eval.c2
-rw-r--r--src/version.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c
index adfe8f899..3d0abf369 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -5298,7 +5298,7 @@ eval7(
* 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 a934fe72e..7952a140c 100644
--- a/src/version.c
+++ b/src/version.c
@@ -754,6 +754,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1865,
+/**/
1864,
/**/
1863,