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 @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 4624, /**/ 4623, /**/