]> granicus.if.org Git - vim/commitdiff
patch 7.4.2277 v7.4.2277
authorBram Moolenaar <Bram@vim.org>
Sun, 28 Aug 2016 12:11:24 +0000 (14:11 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 28 Aug 2016 12:11:24 +0000 (14:11 +0200)
Problem:    Memory leak in getbufinfo() when there is a sign. (Dominique
            Pelle)
Solution:   Remove extra vim_strsave().

src/evalfunc.c
src/version.c

index 7ccf524e61a8afb8e4a3134c003699d3f59eccd1..769532b4f90412c6267e3d66074cbdf4c09bde26 100644 (file)
@@ -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);
        }
index 60b137450cb64f43f82c41f876cd148e9d17b5e8..0be0faa5ca2d45bd997d00f403d5c5d1f9ceec80 100644 (file)
@@ -763,6 +763,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2277,
 /**/
     2276,
 /**/