patch 8.2.2391: memory leak when creating a global function with closure

Problem:    Memory leak when creating a global function with closure.
Solution:   Create a separate partial for every instantiated function.
This commit is contained in:
Bram Moolenaar
2021-01-22 20:46:27 +01:00
parent b3005ce191
commit 0d3de8cb59
3 changed files with 45 additions and 32 deletions

View File

@@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
2391,
/**/
2390,
/**/