Patch 8.2.2989
Problem: Vim9: memory leak when debugging a :def function.
Solution: Free the debug instructions.
Files: src/vim9compile.c
*** ../vim-8.2.2988/src/vim9compile.c 2021-06-13 14:15:26.522510754 +0200
--- src/vim9compile.c 2021-06-13 15:37:20.114988987 +0200
***************
*** 10045,10050 ****
--- 10045,10057 ----
VIM_CLEAR(dfunc->df_instr);
dfunc->df_instr = NULL;
}
+ if (dfunc->df_instr_debug != NULL)
+ {
+ for (idx = 0; idx < dfunc->df_instr_debug_count; ++idx)
+ delete_instr(dfunc->df_instr_debug + idx);
+ VIM_CLEAR(dfunc->df_instr_debug);
+ dfunc->df_instr_debug = NULL;
+ }
#ifdef FEAT_PROFILE
if (dfunc->df_instr_prof != NULL)
{
*** ../vim-8.2.2988/src/version.c 2021-06-13 15:15:58.412822225 +0200
--- src/version.c 2021-06-13 15:38:43.622653018 +0200
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 2989,
/**/
--
A village. Sound of chanting of Latin canon, punctuated by short, sharp
cracks. It comes nearer. We see it is a line of MONKS ala SEVENTH SEAL
flagellation scene, chanting and banging themselves on the foreheads with
wooden boards.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/202106131339.15DDdOdd597902%40masaka.moolenaar.net.