diff src/eval.c @ 9169:0ea97a753a2d v7.4.1868

commit https://github.com/vim/vim/commit/b89a25f17e274dc308c584ea69a129ffbb26bc3d Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jun 1 23:08:39 2016 +0200 patch 7.4.1868 Problem: Setting really_exiting causes memory leaks to be reported. Solution: Add the in_free_all_mem flag.
author Christian Brabandt <cb@256bit.org>
date Wed, 01 Jun 2016 23:15:06 +0200
parents 9bbe6ec0e6dc
children 988c8ab557bf
line wrap: on
line diff
--- a/src/eval.c
+++ b/src/eval.c
@@ -25350,8 +25350,9 @@ func_unref(char_u *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 if (--fp->uf_refcount <= 0)