diff src/structs.h @ 24655:3876d9629ebd v8.2.2866

patch 8.2.2866: Vim9: memory leak when using inline function Commit: https://github.com/vim/vim/commit/ecb664501d3b04d124fca69029b275c520401d40 Author: Bram Moolenaar <Bram@vim.org> Date: Tue May 18 15:09:18 2021 +0200 patch 8.2.2866: Vim9: memory leak when using inline function Problem: Vim9: memory leak when using inline function. Solution: Remember what strings to free.
author Bram Moolenaar <Bram@vim.org>
date Tue, 18 May 2021 15:15:02 +0200
parents a4fda40e0bb9
children 4bc0bda6857d
line wrap: on
line diff
--- a/src/structs.h
+++ b/src/structs.h
@@ -1881,7 +1881,9 @@ typedef struct {
     // Used to collect lines while parsing them, so that they can be
     // concatenated later.  Used when "eval_ga.ga_itemsize" is not zero.
     // "eval_ga.ga_data" is a list of pointers to lines.
+    // "eval_freega" list pointers that need to be freed after concatenating.
     garray_T	eval_ga;
+    garray_T	eval_freega;
 
     // pointer to the last line obtained with getsourceline()
     char_u	*eval_tofree;