From: Bram Moolenaar Date: Sun, 28 Aug 2016 12:11:24 +0000 (+0200) Subject: patch 7.4.2277 X-Git-Tag: v7.4.2277 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6a402edbeb693113f05d9319cd20ec382a0a1a20;p=vim patch 7.4.2277 Problem: Memory leak in getbufinfo() when there is a sign. (Dominique Pelle) Solution: Remove extra vim_strsave(). --- diff --git a/src/evalfunc.c b/src/evalfunc.c index 7ccf524e6..769532b4f 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -3905,8 +3905,7 @@ get_buffer_signs(buf_T *buf, list_T *l) { dict_add_nr_str(d, "id", sign->id, NULL); dict_add_nr_str(d, "lnum", sign->lnum, NULL); - dict_add_nr_str(d, "name", 0L, - vim_strsave(sign_typenr2name(sign->typenr))); + dict_add_nr_str(d, "name", 0L, sign_typenr2name(sign->typenr)); list_append_dict(l, d); } diff --git a/src/version.c b/src/version.c index 60b137450..0be0faa5c 100644 --- a/src/version.c +++ b/src/version.c @@ -763,6 +763,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2277, /**/ 2276, /**/