aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2014-04-26 20:57:22 +0200
committerJustin M. Keyes <justinkz@gmail.com>2014-05-04 15:33:33 -0400
commitc5cac800e7b63d175f7da9462804d7f250f1e23a (patch)
tree3b86f35116278a85d6bade52becdad87808bd197 /src
parente42a3cc4e628de812bc4fdd8b687ec1356286f22 (diff)
downloadrneovim-c5cac800e7b63d175f7da9462804d7f250f1e23a.tar.gz
rneovim-c5cac800e7b63d175f7da9462804d7f250f1e23a.tar.bz2
rneovim-c5cac800e7b63d175f7da9462804d7f250f1e23a.zip
Replace vim_free() implementation
This replaces the vim_free() implementation with a free() call and adds a deprecated flag for the doxygen documentation.
Diffstat (limited to 'src')
-rw-r--r--src/misc2.c14
1 files 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);
}
/*