patch 7.4.1500 v7.4.1500
authorBram Moolenaar <Bram@vim.org>
Sun, 6 Mar 2016 13:58:28 +0000 (14:58 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 6 Mar 2016 13:58:28 +0000 (14:58 +0100)
Problem:    Should_free flag set to FALSE.
Solution:   Set it to TRUE. (Neovim 4415)

src/ex_eval.c
src/version.c

index c68c6ad189bb3b77abe92329019e9f9d467b5daa..3fd470c10b2d18c331629a1de851ec30587c6130 100644 (file)
@@ -432,7 +432,7 @@ get_exception_string(
 
     if (type == ET_ERROR)
     {
-       *should_free = FALSE;
+       *should_free = TRUE;
        mesg = ((struct msglist *)value)->throw_msg;
        if (cmdname != NULL && *cmdname != NUL)
        {
@@ -489,7 +489,7 @@ get_exception_string(
     else
     {
        *should_free = FALSE;
-       ret = (char_u *) value;
+       ret = (char_u *)value;
     }
 
     return ret;
index 6ce39932addedd155f0b6a2d968fa714695f2f1a..106fa20819baab0cbee39a3ca7f9c8b2ff055110 100644 (file)
@@ -743,6 +743,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1500,
 /**/
     1499,
 /**/