summaryrefslogtreecommitdiff
path: root/src/structs.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-05-18 15:09:18 +0200
committerBram Moolenaar <Bram@vim.org>2021-05-18 15:09:18 +0200
commitecb664501d3b04d124fca69029b275c520401d40 (patch)
treed5cd0eb0140b636d75519b0156be5bafe3c92cb7 /src/structs.h
parentd87c21a918d8d611750f22d68fc638bf7a79b1d5 (diff)
downloadvim-git-ecb664501d3b04d124fca69029b275c520401d40.tar.gz
patch 8.2.2866: Vim9: memory leak when using inline functionv8.2.2866
Problem: Vim9: memory leak when using inline function. Solution: Remember what strings to free.
Diffstat (limited to 'src/structs.h')
-rw-r--r--src/structs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/structs.h b/src/structs.h
index 9861bb601..3bb641be8 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -1881,7 +1881,9 @@ typedef struct {
// 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;