mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
updated for version 7.0179
This commit is contained in:
@@ -1426,13 +1426,15 @@ copy_option_part(option, buf, maxlen, sep_chars)
|
||||
}
|
||||
|
||||
/*
|
||||
* replacement for free() that ignores NULL pointers
|
||||
* Replacement for free() that ignores NULL pointers.
|
||||
* Also skip free() when exiting for sure, this helps when we caught a deadly
|
||||
* signal that was caused by a crash in free().
|
||||
*/
|
||||
void
|
||||
vim_free(x)
|
||||
void *x;
|
||||
{
|
||||
if (x != NULL)
|
||||
if (x != NULL && !really_exiting)
|
||||
{
|
||||
#ifdef MEM_PROFILE
|
||||
mem_pre_free(&x);
|
||||
|
Reference in New Issue
Block a user