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, "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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user