vim-patch:7.4.1868

Problem:    Setting really_exiting causes memory leaks to be reported.
Solution:   Add the in_free_all_mem flag.

b89a25f17e
This commit is contained in:
James McCoy
2017-01-01 22:47:55 -05:00
parent 1feaa450cb
commit 945540b782
4 changed files with 10 additions and 10 deletions

View File

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