diff options
author | ZyX <kp-pav@yandex.ru> | 2017-04-15 19:18:25 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-04-15 19:18:25 +0300 |
commit | af3579d5f7bc86a25fd73e94c6de0e73ae9d8e12 (patch) | |
tree | c0641a54731f3b8d94998c9bb203cded577f0f47 /src | |
parent | b9004d744811f530922fbb194ea02033d332f375 (diff) | |
download | rneovim-af3579d5f7bc86a25fd73e94c6de0e73ae9d8e12.tar.gz rneovim-af3579d5f7bc86a25fd73e94c6de0e73ae9d8e12.tar.bz2 rneovim-af3579d5f7bc86a25fd73e94c6de0e73ae9d8e12.zip |
eval/typval: Remove FUNC_ATTR_MALLOC from tv_dict_alloc
Allocated dict points to previously allocated dict.
Queue in allocated dict points to itself.
Hashtab in allocated dict points to inside itself.
Allocated dict is saved to gc_first_dict.
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/eval/typval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval/typval.c b/src/nvim/eval/typval.c index 4d1400484a..9e954be9b3 100644 --- a/src/nvim/eval/typval.c +++ b/src/nvim/eval/typval.c @@ -1039,7 +1039,7 @@ void tv_dict_item_remove(dict_T *const dict, dictitem_T *const item) /// /// @return [allocated] new dictionary. dict_T *tv_dict_alloc(void) - FUNC_ATTR_NONNULL_RET FUNC_ATTR_MALLOC FUNC_ATTR_WARN_UNUSED_RESULT + FUNC_ATTR_NONNULL_RET FUNC_ATTR_WARN_UNUSED_RESULT { dict_T *const d = xmalloc(sizeof(dict_T)); |