]> granicus.if.org Git - vim/commitdiff
patch 8.2.0883: memory leak in test 49 v8.2.0883
authorBram Moolenaar <Bram@vim.org>
Mon, 1 Jun 2020 19:13:11 +0000 (21:13 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 1 Jun 2020 19:13:11 +0000 (21:13 +0200)
Problem:    Memory leak in test 49.
Solution:   Free "sfile" from the exception.

src/ex_docmd.c
src/version.c

index ea2763e4425e633c0e74a74d2029b3ef992ce361..a98dc077d8c5a4ff117c4abe220ea89feaebf890 100644 (file)
@@ -1278,6 +1278,7 @@ do_cmdline(
                    next = messages->next;
                    emsg(messages->msg);
                    vim_free(messages->msg);
+                   vim_free(messages->sfile);
                    vim_free(messages);
                    messages = next;
                }
index 81485ba127fd79f1a45a40795af6899e44548d3a..dff6cf92217cefd9dae978c358f8b01f0aba3274 100644 (file)
@@ -746,6 +746,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    883,
 /**/
     882,
 /**/