]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.2.0079: memory leak in eval_dict() v9.2.0079
authorHuihui Huang <625173@qq.com>
Sat, 28 Feb 2026 17:01:53 +0000 (17:01 +0000)
committerChristian Brabandt <cb@256bit.org>
Sat, 28 Feb 2026 17:01:53 +0000 (17:01 +0000)
Problem:  memory leak in eval_dict()
Solution: Do not return but goto failret (Huihui Huang).

closes: #19531

Signed-off-by: Huihui Huang <625173@qq.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/dict.c
src/version.c

index 85e451ec7161ebad7e8e27b85b35a850a221ab3c..2b3ef889718151499dbda885e5db03a32a530393 100644 (file)
@@ -994,7 +994,7 @@ eval_dict(char_u **arg, typval_T *rettv, evalarg_T *evalarg, int literal)
                {
                    emsg(_(e_missing_matching_bracket_after_dict_key));
                    clear_tv(&tvkey);
-                   return FAIL;
+                   goto failret;
                }
                ++*arg;
            }
index 7abc134fc54efcb56a55e85b661adf9b598ed6e1..51b853a2b9d7346849286eba259706bd67a8a3af 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    79,
 /**/
     78,
 /**/