mirror of
https://github.com/vim/vim.git
synced 2025-10-13 06:54:15 -04:00
patch 7.4.2277
Problem: Memory leak in getbufinfo() when there is a sign. (Dominique Pelle) Solution: Remove extra vim_strsave().
This commit is contained in:
@@ -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, "id", sign->id, NULL);
|
||||||
dict_add_nr_str(d, "lnum", sign->lnum, NULL);
|
dict_add_nr_str(d, "lnum", sign->lnum, NULL);
|
||||||
dict_add_nr_str(d, "name", 0L,
|
dict_add_nr_str(d, "name", 0L, sign_typenr2name(sign->typenr));
|
||||||
vim_strsave(sign_typenr2name(sign->typenr)));
|
|
||||||
|
|
||||||
list_append_dict(l, d);
|
list_append_dict(l, d);
|
||||||
}
|
}
|
||||||
|
@@ -763,6 +763,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2277,
|
||||||
/**/
|
/**/
|
||||||
2276,
|
2276,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user