From c5cac800e7b63d175f7da9462804d7f250f1e23a Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sat, 26 Apr 2014 20:57:22 +0200 Subject: Replace vim_free() implementation This replaces the vim_free() implementation with a free() call and adds a deprecated flag for the doxygen documentation. --- src/misc2.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/misc2.c b/src/misc2.c index 9ffec654d1..e50f09857c 100644 --- a/src/misc2.c +++ b/src/misc2.c @@ -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); } /* -- cgit