From f387f5dfbc5accbfbbbb87486f6af42a82acaa7d Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 15 Apr 2021 13:42:21 +0200 Subject: [PATCH] patch 8.2.2768: Vim9: memory leak with blob range error Problem: Vim9: memory leak with blob range error. Solution: Jump to end instead of returning. --- src/version.c | 2 ++ src/vim9compile.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/version.c b/src/version.c index 085a182ed..fff7e69b7 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2768, /**/ 2767, /**/ 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. -- 2.40.0