From: Bram Moolenaar Date: Thu, 15 Apr 2021 11:42:21 +0000 (+0200) Subject: patch 8.2.2768: Vim9: memory leak with blob range error X-Git-Tag: v8.2.2768 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f387f5dfbc5accbfbbbb87486f6af42a82acaa7d;p=vim 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. --- 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.