0
0
mirror of https://github.com/vim/vim.git synced 2025-09-30 04:44:14 -04:00

patch 8.2.2636: memory leak when compiling inline function

Problem:    Memory leak when compiling inline function.
Solution:   Free the prefetched line.
This commit is contained in:
Bram Moolenaar
2021-03-21 22:12:34 +01:00
parent 7a6eaa06f9
commit 67da21a147
6 changed files with 26 additions and 9 deletions

View File

@@ -1882,6 +1882,9 @@ typedef struct {
// pointer to the last line obtained with getsourceline()
char_u *eval_tofree;
// pointer to the last line of an inline function
char_u *eval_tofree_cmdline;
// pointer to the lines concatenated for a lambda.
char_u *eval_tofree_lambda;
} evalarg_T;