patch 8.2.2866: Vim9: memory leak when using inline function
Problem: Vim9: memory leak when using inline function.
Solution: Remember what strings to free.
diff --git a/src/structs.h b/src/structs.h
index 9861bb6..3bb641b 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -1881,7 +1881,9 @@
// Used to collect lines while parsing them, so that they can be
// concatenated later. Used when "eval_ga.ga_itemsize" is not zero.
// "eval_ga.ga_data" is a list of pointers to lines.
+ // "eval_freega" list pointers that need to be freed after concatenating.
garray_T eval_ga;
+ garray_T eval_freega;
// pointer to the last line obtained with getsourceline()
char_u *eval_tofree;