mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.4668: buffer allocation failures insufficiently tested
Problem: Buffer allocation failures insufficiently tested. Solution: Add tests for memory allocation failures. (Yegappan Lakshmanan, closes #10064)
This commit is contained in:
committed by
Bram Moolenaar
parent
5018a836c0
commit
0dac1ab579
@@ -2093,7 +2093,7 @@ buflist_new(
|
||||
}
|
||||
#ifdef FEAT_EVAL
|
||||
// init b: variables
|
||||
buf->b_vars = dict_alloc();
|
||||
buf->b_vars = dict_alloc_id(aid_buflistnew_bvars);
|
||||
if (buf->b_vars == NULL)
|
||||
{
|
||||
vim_free(ffname);
|
||||
|
Reference in New Issue
Block a user