summaryrefslogtreecommitdiff
path: root/src/structs.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-06-24 20:34:03 +0200
committerBram Moolenaar <Bram@vim.org>2020-06-24 20:34:03 +0200
commitb171fb179053fa631fec74911b5fb9374cb6a8a1 (patch)
treec45ae9287bf07033cc4f3bf43529b7548ba432c9 /src/structs.h
parent9d40c63c7dc8c3eb3886c58dcd334bc7f37eceba (diff)
downloadvim-git-b171fb179053fa631fec74911b5fb9374cb6a8a1.tar.gz
patch 8.2.1049: Vim9: leaking memory when using continuation linev8.2.1049
Problem: Vim9: leaking memory when using continuation line. Solution: Keep a pointer to the continuation line in evalarg_T. Centralize checking for a next command.
Diffstat (limited to 'src/structs.h')
-rw-r--r--src/structs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/structs.h b/src/structs.h
index 0ac486406..395088735 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -1753,6 +1753,9 @@ typedef struct {
// copied from exarg_T when "getline" is "getsourceline". Can be NULL.
void *eval_cookie; // argument for getline()
+
+ // pointer to the line obtained with getsourceline()
+ char_u *eval_tofree;
} evalarg_T;
// Flags for expression evaluation.