summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-04-15 13:42:21 +0200
committerBram Moolenaar <Bram@vim.org>2021-04-15 13:42:21 +0200
commitf387f5dfbc5accbfbbbb87486f6af42a82acaa7d (patch)
treee48ac9c72d4fd1efd5f6dbb17907160a8fe6207f
parentbd6406f15db210b78fa24dece3bd021a7ac085dc (diff)
downloadvim-git-8.2.2768.tar.gz
patch 8.2.2768: Vim9: memory leak with blob range errorv8.2.2768
Problem: Vim9: memory leak with blob range error. Solution: Jump to end instead of returning.
-rw-r--r--src/version.c2
-rw-r--r--src/vim9compile.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/version.c b/src/version.c
index 085a182ed..fff7e69b7 100644
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 2768,
+/**/
2767,
/**/
2766,
diff --git a/src/vim9compile.c b/src/vim9compile.c
index 628611405..78c387f42 100644
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -6474,7 +6474,7 @@ compile_assignment(char_u *arg, exarg_T *eap, cmdidx_T cmdidx, cctx_T *cctx)
{
semsg(_(e_cannot_use_range_with_assignment_operator_str),
var_start);
- return FAIL;
+ goto theend;
}
// Get the member.