mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
ops: Remove FUNC_ATTR_MALLOC from copy_register
Returned storage has a pointer to a newly allocated array.
This commit is contained in:
parent
d191ba1db3
commit
ac47e64eca
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user