patch 8.2.3560: using freed memory with lambda
Problem: Using freed memory with lambda.
Solution: Do not free lines early, keep them until the expression is
finished.
diff --git a/src/globals.h b/src/globals.h
index 4a6e027..948c35f 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -1867,8 +1867,8 @@
// Passed to an eval() function to enable evaluation.
EXTERN evalarg_T EVALARG_EVALUATE
# ifdef DO_INIT
- = {EVAL_EVALUATE, 0, NULL, NULL, NULL, NULL, {0, 0, 0, 0, NULL},
- {0, 0, 0, 0, NULL}, NULL, NULL, NULL}
+ = {EVAL_EVALUATE, 0, NULL, NULL, NULL, NULL, GA_EMPTY, GA_EMPTY, NULL,
+ {0, 0, (int)sizeof(char_u *), 20, NULL}, 0, NULL}
# endif
;
#endif