summaryrefslogtreecommitdiffstats
path: root/src/diff.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/diff.c')
-rw-r--r--src/diff.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/diff.c b/src/diff.c
index 9fb8726b4d..d42233889c 100644
--- 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;