1
0
forked from aniani/vim

patch 8.2.3427: double free when list is copied

Problem:    Double free when list is copied.
Solution:   Allocate the type when making a copy. (closes #8862)
            Clear the type for flattennew().  Avoid a memory leak when
            flattennew() fails.
This commit is contained in:
Bram Moolenaar
2021-09-11 20:20:38 +02:00
parent 4b4b1b84ee
commit b3bf33a7b2
3 changed files with 19 additions and 5 deletions

View File

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