comparison 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
comparison
equal deleted inserted replaced
9168:702732dc3ed7 9169:0ea97a753a2d
25348 if (name != NULL && isdigit(*name)) 25348 if (name != NULL && isdigit(*name))
25349 { 25349 {
25350 fp = find_func(name); 25350 fp = find_func(name);
25351 if (fp == NULL) 25351 if (fp == NULL)
25352 { 25352 {
25353 /* Ignore when invoked through free_all_mem(). */ 25353 #ifdef EXITFREE
25354 if (!really_exiting) 25354 if (!entered_free_all_mem)
25355 #endif
25355 EMSG2(_(e_intern2), "func_unref()"); 25356 EMSG2(_(e_intern2), "func_unref()");
25356 } 25357 }
25357 else if (--fp->uf_refcount <= 0) 25358 else if (--fp->uf_refcount <= 0)
25358 { 25359 {
25359 /* Only delete it when it's not being used. Otherwise it's done 25360 /* Only delete it when it's not being used. Otherwise it's done