vim-patch:7.4.2277

Problem:    Memory leak in getbufinfo() when there is a sign. (Dominique
            Pelle)
Solution:   Remove extra vim_strsave().

6a402edbeb
This commit is contained in:
James McCoy
2016-12-12 23:22:50 -05:00
parent fe03ce23bf
commit de025d6dd0
2 changed files with 2 additions and 2 deletions

View File

@@ -9857,7 +9857,7 @@ static void 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);
}

View File

@@ -163,7 +163,7 @@ static int included_patches[] = {
// 2280,
// 2279,
// 2278 NA
// 2277,
2277,
// 2276,
// 2275,
2274,