commit | b3bf33a7b227df871834e816c4ce4b2706b56bea | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sat Sep 11 20:20:38 2021 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Sat Sep 11 20:20:38 2021 +0200 |
tree | d19c84a9eae05efb04ae17172dce8169b5288dc9 | |
parent | 4b4b1b84eee70b74fa3bb57624533c65bafd8428 [diff] [blame] |
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.
diff --git a/src/version.c b/src/version.c index c98249b..f82881f 100644 --- a/src/version.c +++ b/src/version.c
@@ -756,6 +756,8 @@ static int included_patches[] = { /* Add new patch number below this line */ /**/ + 3427, +/**/ 3426, /**/ 3425,