ops: Remove FUNC_ATTR_MALLOC from copy_register

Returned storage has a pointer to a newly allocated array.
This commit is contained in:
ZyX 2017-04-15 19:25:00 +03:00
parent d191ba1db3
commit ac47e64eca

View File

@ -802,7 +802,6 @@ static bool is_append_register(int regname)
/// Returns a copy of contents in register `name`
/// for use in do_put. Should be freed by caller.
yankreg_T *copy_register(int name)
FUNC_ATTR_MALLOC
FUNC_ATTR_NONNULL_RET
{
yankreg_T *reg = get_yank_register(name, YREG_PASTE);