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
index 9fb8726..d422338 100644
--- a/src/diff.c
+++ b/src/diff.c
@@ -3310,7 +3310,10 @@
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
index b752bc4..09bce7b 100644
--- a/src/version.c
+++ b/src/version.c
@@ -750,6 +750,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 3931,
+/**/
3930,
/**/
3929,