Problem: Vim9: memory leak when literal dict has an error and when an
expression is not complete.
Solution: Clear the typval and the growarray.
if (**arg != ']')
{
emsg(_(e_missing_matching_bracket_after_dict_key));
+ clear_tv(&tvkey);
return FAIL;
}
++*arg;
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 2101,
/**/
2100,
/**/
// eval the next expression
*arg = skipwhite(p + 2);
if (may_get_next_line_error(p + 2, arg, cctx) == FAIL)
+ {
+ ga_clear(&end_ga);
return FAIL;
+ }
if ((opchar == '|' ? compile_expr3(arg, cctx, ppconst)
: compile_expr4(arg, cctx, ppconst)) == FAIL)