Mercurial > vim
diff src/structs.h @ 21220:ad13736a1783 v8.2.1161
patch 8.2.1161: Vim9: using freed memory
Commit: https://github.com/vim/vim/commit/8e2730a315b8b06192f5fc822dc218dbb3cff7ae
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jul 8 22:01:49 2020 +0200
patch 8.2.1161: Vim9: using freed memory
Problem: Vim9: using freed memory.
Solution: Put pointer back in evalarg instead of freeing it.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 08 Jul 2020 22:15:04 +0200 |
parents | 09377fd59b2e |
children | 13b1567ae0c6 |
line wrap: on
line diff
--- 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.