0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 7.4.1868

Problem:    Setting really_exiting causes memory leaks to be reported.
Solution:   Add the in_free_all_mem flag.
This commit is contained in:
Bram Moolenaar
2016-06-01 23:08:39 +02:00
parent 3c809343c7
commit b89a25f17e
4 changed files with 11 additions and 8 deletions

View File

@@ -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)