]> granicus.if.org Git - vim/commitdiff
patch 8.2.2768: Vim9: memory leak with blob range error v8.2.2768
authorBram Moolenaar <Bram@vim.org>
Thu, 15 Apr 2021 11:42:21 +0000 (13:42 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 15 Apr 2021 11:42:21 +0000 (13:42 +0200)
Problem:    Vim9: memory leak with blob range error.
Solution:   Jump to end instead of returning.

src/version.c
src/vim9compile.c

index 085a182ed7086de69f1ce37d7a54b8320d6b3f2c..fff7e69b72070ae662bff9dd9ff17c9b7457a724 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2768,
 /**/
     2767,
 /**/
index 62861140558f5b2dcc550b1d8e214b3305c5ba6c..78c387f4297913f0f9360fecef149fb9280ab45d 100644 (file)
@@ -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.