From: Bram Moolenaar Date: Wed, 1 Jun 2016 20:08:17 +0000 (+0200) Subject: patch 7.4.1865 X-Git-Tag: v7.4.1865 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9ad73239c26467832a5b553b2a4b99d7ffbaa25e;p=vim 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 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 @@ -753,6 +753,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1865, /**/ 1864, /**/