diff options
-rw-r--r-- | src/diff.c | 4 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/diff.c b/src/diff.c index 4136d99b44..00ccdb611f 100644 --- a/src/diff.c +++ b/src/diff.c @@ -1662,7 +1662,11 @@ diff_read( { hunk = ALLOC_ONE(diffhunk_T); if (hunk == NULL) + { + if (fd != NULL) + fclose(fd); return; + } } for (;;) diff --git a/src/version.c b/src/version.c index c7164f4896..4a20c4665e 100644 --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 4624, +/**/ 4623, /**/ 4622, |