aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2016-12-12 23:22:50 -0500
committerJames McCoy <jamessan@jamessan.com>2016-12-28 14:57:39 -0500
commitde025d6dd05de41a1226721420ffa51018e07fed (patch)
tree9d9603cee2c9375f93b38a54c7053066b9476b72 /src/nvim/eval.c
parentfe03ce23bfc5c45545b53d4959aeeb27d82753ed (diff)
downloadrneovim-de025d6dd05de41a1226721420ffa51018e07fed.tar.gz
rneovim-de025d6dd05de41a1226721420ffa51018e07fed.tar.bz2
rneovim-de025d6dd05de41a1226721420ffa51018e07fed.zip
vim-patch:7.4.2277
Problem: Memory leak in getbufinfo() when there is a sign. (Dominique Pelle) Solution: Remove extra vim_strsave(). https://github.com/vim/vim/commit/6a402edbeb693113f05d9319cd20ec382a0a1a20
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r--src/nvim/eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index 2b325bbf20..2016e0bb45 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -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);
}