diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-06-01 22:08:17 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-06-01 22:08:17 +0200 |
commit | 9ad73239c26467832a5b553b2a4b99d7ffbaa25e (patch) | |
tree | 78692621eed08764ddc93ca1b2b15a9ae8fadf31 /src | |
parent | 22081f4a3397704645841121d994058abd6cb481 (diff) | |
download | vim-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.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
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, |