0
0
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:
Yegappan Lakshmanan
2022-04-02 21:46:19 +01:00
committed by Bram Moolenaar
parent 5018a836c0
commit 0dac1ab579
7 changed files with 84 additions and 6 deletions

View File

@@ -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);