diff options
author | ZyX <kp-pav@yandex.ru> | 2017-03-12 13:41:11 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-03-29 10:08:06 +0300 |
commit | a394167177390a66c275d32e3862c82c546970ff (patch) | |
tree | 484af6ef5a62874075e4d538934afaa4ace04f2d /src/nvim/eval/typval.c | |
parent | a32db8ed19c35847373d4a7fd56d7797a5a26897 (diff) | |
download | rneovim-a394167177390a66c275d32e3862c82c546970ff.tar.gz rneovim-a394167177390a66c275d32e3862c82c546970ff.tar.bz2 rneovim-a394167177390a66c275d32e3862c82c546970ff.zip |
unittests: Test tv_list_item_\* functions
To check that memory is free()d correctly.
Diffstat (limited to 'src/nvim/eval/typval.c')
-rw-r--r-- | src/nvim/eval/typval.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/eval/typval.c b/src/nvim/eval/typval.c index 4777e00a76..a26afb20c6 100644 --- a/src/nvim/eval/typval.c +++ b/src/nvim/eval/typval.c @@ -228,6 +228,7 @@ void tv_list_unref(list_T *const l) /// @param[in] item2 Last item to remove. void tv_list_remove_items(list_T *const l, listitem_T *const item, listitem_T *const item2) + FUNC_ATTR_NONNULL_ALL { // notify watchers for (listitem_T *ip = item; ip != NULL; ip = ip->li_next) { |