aboutsummaryrefslogtreecommitdiff
path: root/src/buffer.c
diff options
context:
space:
mode:
authorFelipe Oliveira Carvalho <felipekde@gmail.com>2014-04-04 14:24:13 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-11 12:57:59 -0300
commit86279cefae74ead8c740575d294ef06e12aa7da8 (patch)
treeb0be9f06cb3aec89629c8ab8bb60a6cddce010ae /src/buffer.c
parent3fcdb2ab29f6285b4b5b4fd706db54a98b1a773f (diff)
downloadrneovim-86279cefae74ead8c740575d294ef06e12aa7da8.tar.gz
rneovim-86279cefae74ead8c740575d294ef06e12aa7da8.tar.bz2
rneovim-86279cefae74ead8c740575d294ef06e12aa7da8.zip
Remove more OOM error handling code
From the functions: - ExpandBufnames - buf_modname() - do_autocmd_event() - ff_create_stack_element() - ff_get_visited_list() - ins_complete() - msg_show_console_dialog() - prt_find_resource() - vim_findfile_init() TODO: refactor msg_show_console_dialog() to make sure it doesn't ever return NULL.
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);