aboutsummaryrefslogtreecommitdiff
path: root/src/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 2f214f45ac..d25ed10ac7 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -1877,12 +1877,6 @@ int ExpandBufnames(char_u *pat, int *num_file, char_u ***file, int options)
break;
if (round == 1) {
*file = (char_u **)alloc((unsigned)(count * sizeof(char_u *)));
- if (*file == NULL) {
- vim_regfree(prog);
- if (patc != pat)
- vim_free(patc);
- return FAIL;
- }
}
}
vim_regfree(prog);