diff options
author | Daniel Hahler <git@thequod.de> | 2019-07-06 12:22:20 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-07-06 12:22:20 +0200 |
commit | b7ca478e10a468952f237b853443b117400651eb (patch) | |
tree | 4db50d8ba88d9de7c08ed1c2ec686353f3f41626 | |
parent | 3c860e25e909531954af31c832816fa22ec835e7 (diff) | |
download | rneovim-b7ca478e10a468952f237b853443b117400651eb.tar.gz rneovim-b7ca478e10a468952f237b853443b117400651eb.tar.bz2 rneovim-b7ca478e10a468952f237b853443b117400651eb.zip |
func_clear_items: use XFREE_CLEAR #10436
Follow-up to https://github.com/neovim/neovim/pull/10428#discussion_r300813498
-rw-r--r-- | src/nvim/eval.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 1935478f15..fb8ec5457b 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -22213,12 +22213,9 @@ static void func_clear_items(ufunc_T *fp) ga_clear_strings(&(fp->uf_args)); ga_clear_strings(&(fp->uf_lines)); - xfree(fp->uf_tml_count); - fp->uf_tml_count = NULL; - xfree(fp->uf_tml_total); - fp->uf_tml_total = NULL; - xfree(fp->uf_tml_self); - fp->uf_tml_self = NULL; + XFREE_CLEAR(fp->uf_tml_count); + XFREE_CLEAR(fp->uf_tml_total); + XFREE_CLEAR(fp->uf_tml_self); } /// Free all things that a function contains. Does not free the function |