diff options
author | James McCoy <jamessan@jamessan.com> | 2017-01-01 22:47:55 -0500 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2017-01-01 23:20:31 -0500 |
commit | 945540b7825e2909d17d8b8867330c3ace7c759c (patch) | |
tree | f81c4db6f2d319515519f3d9f4b09226148b49de /src/nvim/eval.c | |
parent | 1feaa450cb024a4cd4eb3ae7ab7e5db683909488 (diff) | |
download | rneovim-945540b7825e2909d17d8b8867330c3ace7c759c.tar.gz rneovim-945540b7825e2909d17d8b8867330c3ace7c759c.tar.bz2 rneovim-945540b7825e2909d17d8b8867330c3ace7c759c.zip |
vim-patch:7.4.1868
Problem: Setting really_exiting causes memory leaks to be reported.
Solution: Add the in_free_all_mem flag.
https://github.com/vim/vim/commit/b89a25f17e274dc308c584ea69a129ffbb26bc3d
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index c900cf5dfb..f769016936 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -21569,10 +21569,10 @@ void func_unref(char_u *name) if (name != NULL && isdigit(*name)) { fp = find_func(name); if (fp == NULL) { - // Ignore when invoked through free_all_mem(). - if (!really_exiting) { +#ifdef EXITFREE + if (!entered_free_all_mem) +#endif EMSG2(_(e_intern2), "func_unref()"); - } } else { user_func_unref(fp); } |