summaryrefslogtreecommitdiffstats
path: root/src/structs.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-07-08 22:01:49 +0200
committerBram Moolenaar <Bram@vim.org>2020-07-08 22:01:49 +0200
commit8e2730a315b8b06192f5fc822dc218dbb3cff7ae (patch)
tree6ed5abaddd5816210eb4b5220f1749bbc87dcdf2 /src/structs.h
parent6110e79a5872dd6c5529f909d1bd670e3325927b (diff)
patch 8.2.1161: Vim9: using freed memoryv8.2.1161
Problem: Vim9: using freed memory. Solution: Put pointer back in evalarg instead of freeing it.
Diffstat (limited to 'src/structs.h')
-rw-r--r--src/structs.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/structs.h b/src/structs.h
index 4ae94fd04e..bdc763b52d 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -1773,8 +1773,11 @@ typedef struct {
// "eval_ga.ga_data" is a list of pointers to lines.
garray_T eval_ga;
- // pointer to the line obtained with getsourceline()
+ // pointer to the last line obtained with getsourceline()
char_u *eval_tofree;
+
+ // pointer to the lines concatenated for a lambda.
+ char_u *eval_tofree_lambda;
} evalarg_T;
// Flags for expression evaluation.