mirror of
https://github.com/neovim/neovim.git
synced 2025-09-11 13:58:18 +00:00
ops: Remove FUNC_ATTR_MALLOC from copy_register
Returned storage has a pointer to a newly allocated array.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user