]> granicus.if.org Git - vim/commit
patch 8.2.3427: double free when list is copied v8.2.3427
authorBram Moolenaar <Bram@vim.org>
Sat, 11 Sep 2021 18:20:38 +0000 (20:20 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 11 Sep 2021 18:20:38 +0000 (20:20 +0200)
commitb3bf33a7b227df871834e816c4ce4b2706b56bea
treed19c84a9eae05efb04ae17172dce8169b5288dc9
parent4b4b1b84eee70b74fa3bb57624533c65bafd8428
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.
src/list.c
src/testdir/test_vim9_builtin.vim
src/version.c