1
0
forked from aniani/vim

patch 9.0.1142: crash and/or memory leak when redefining function

Problem:    Crash and/or memory leak when redefining function after error.
Solution:   Clear pointer after making a copy.  Clear arrays on failure.
            (closes #11774)
This commit is contained in:
Bram Moolenaar
2023-01-04 13:16:20 +00:00
parent aaa16b0918
commit f057171d8b
2 changed files with 13 additions and 5 deletions

View File

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