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:
ZyX
2017-04-15 19:16:00 +03:00
parent 0dddd8a27c
commit b08b71c728

View File

@@ -136,7 +136,7 @@ void tv_list_watch_fix(list_T *const l, const listitem_T *const item)
///
/// @return [allocated] new list.
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));