mirror of
https://github.com/neovim/neovim.git
synced 2025-09-19 09:48:19 +00:00
eval/typval: Remove FUNC_ATTR_MALLOC from tv_list_alloc
Allocated list points to previously allocated list. Allocated list is saved to gc_first_list.
This commit is contained in:
@@ -136,7 +136,7 @@ void tv_list_watch_fix(list_T *const l, const listitem_T *const item)
|
|||||||
///
|
///
|
||||||
/// @return [allocated] new list.
|
/// @return [allocated] new list.
|
||||||
list_T *tv_list_alloc(void)
|
list_T *tv_list_alloc(void)
|
||||||
FUNC_ATTR_NONNULL_RET FUNC_ATTR_MALLOC
|
FUNC_ATTR_NONNULL_RET
|
||||||
{
|
{
|
||||||
list_T *const list = xcalloc(1, sizeof(list_T));
|
list_T *const list = xcalloc(1, sizeof(list_T));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user