# HG changeset patch # User Christian Brabandt # Date 1472386505 -7200 # Node ID 84a9ad350a053617c8f54f06fe1b85e19cb6e3dc # Parent 68f4df6fc371e7c60d1e5e0aa1cfbad9ca4ee49b commit https://github.com/vim/vim/commit/6a402edbeb693113f05d9319cd20ec382a0a1a20 Author: Bram Moolenaar Date: Sun Aug 28 14:11:24 2016 +0200 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 --- 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 --- a/src/version.c +++ b/src/version.c @@ -764,6 +764,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2277, +/**/ 2276, /**/ 2275,