Mercurial > vim
comparison src/buffer.c @ 28289:cdaff4db7760 v8.2.4670
patch 8.2.4670: memory allocation failures for new tab page not tested
Commit: https://github.com/vim/vim/commit/72bb47e38f6805050ed6d969f17591bed71f83d4
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Sun Apr 3 11:22:38 2022 +0100
patch 8.2.4670: memory allocation failures for new tab page not tested
Problem: Memory allocation failures for new tab page not tested.
Solution: Add tests with failing memory allocation. (Yegappan Lakshmanan,
closes #10067)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 03 Apr 2022 12:30:03 +0200 |
parents | a4aad5142959 |
children | 427600f3b1c5 |
comparison
equal
deleted
inserted
replaced
28288:a044daf370c5 | 28289:cdaff4db7760 |
---|---|
2091 vim_free(ffname); | 2091 vim_free(ffname); |
2092 return NULL; | 2092 return NULL; |
2093 } | 2093 } |
2094 #ifdef FEAT_EVAL | 2094 #ifdef FEAT_EVAL |
2095 // init b: variables | 2095 // init b: variables |
2096 buf->b_vars = dict_alloc_id(aid_buflistnew_bvars); | 2096 buf->b_vars = dict_alloc_id(aid_newbuf_bvars); |
2097 if (buf->b_vars == NULL) | 2097 if (buf->b_vars == NULL) |
2098 { | 2098 { |
2099 vim_free(ffname); | 2099 vim_free(ffname); |
2100 vim_free(buf); | 2100 vim_free(buf); |
2101 return NULL; | 2101 return NULL; |