Replace vim_free() implementation

This replaces the vim_free() implementation with a free() call and adds
a deprecated flag for the doxygen documentation.
This commit is contained in:
Matthias Beyer 2014-04-26 20:57:22 +02:00 committed by Justin M. Keyes
parent e42a3cc4e6
commit c5cac800e7

View File

@ -634,16 +634,14 @@ int copy_option_part(char_u **option, char_u *buf, int maxlen, char *sep_chars)
return len;
}
/*
* 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().
*/
///
/// Replacement for free().
///
/// @deprecated Use free() instead
///
void vim_free(void *x)
{
if (x != NULL && !really_exiting) {
free(x);
}
free(x);
}
/*