mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.1161: Vim9: using freed memory
Problem: Vim9: using freed memory. Solution: Put pointer back in evalarg instead of freeing it.
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user