eval/typval: Remove FUNC_ATTR_MALLOC from tv_list_alloc_ret

Same as tv_list_alloc, but additionally ret_tv receives pointer to the newly 
allocated list.
This commit is contained in:
ZyX 2017-04-15 19:19:22 +03:00
parent af3579d5f7
commit 82ba2891ae

View File

@ -1576,7 +1576,7 @@ void tv_dict_set_keys_readonly(dict_T *const dict)
///
/// @return [allocated] pointer to the created list.
list_T *tv_list_alloc_ret(typval_T *const ret_tv)
FUNC_ATTR_NONNULL_ALL FUNC_ATTR_MALLOC
FUNC_ATTR_NONNULL_ALL
{
list_T *const l = tv_list_alloc();
ret_tv->vval.v_list = l;