# HG changeset patch # User Bram Moolenaar # Date 1640779205 -3600 # Node ID 77ff030699d26d5735d54bb1805df6b3e9ca34ba # Parent 34f1b7d6974a83dde9179854e1877b9afe80b0e3 patch 8.2.3931: Coverity reports a memory leak Commit: https://github.com/vim/vim/commit/febb78fa1798e0f95983b3f7881419a754886df5 Author: Bram Moolenaar Date: Wed Dec 29 11:59:53 2021 +0000 patch 8.2.3931: Coverity reports a memory leak Problem: Coverity reports a memory leak. Solution: Free memory in case of failure. diff --git a/src/diff.c b/src/diff.c --- a/src/diff.c +++ b/src/diff.c @@ -3310,7 +3310,10 @@ xdiff_out( return -1; if (ga_grow(&dout->dout_ga, 1) == FAIL) + { + vim_free(p); return -1; + } p->lnum_orig = start_a + 1; p->count_orig = count_a; diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 3931, +/**/ 3930, /**/ 3929,