Mercurial > vim
changeset 10009:84a9ad350a05 v7.4.2277
commit https://github.com/vim/vim/commit/6a402edbeb693113f05d9319cd20ec382a0a1a20
Author: Bram Moolenaar <Bram@vim.org>
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().
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 28 Aug 2016 14:15:05 +0200 |
parents | 68f4df6fc371 |
children | a1ba629a1fab |
files | src/evalfunc.c src/version.c |
diffstat | 2 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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); }