Merge pull request #814 from dvdhrm/mfree

tree-wide: introduce mfree()
This commit is contained in:
Daniel Mack
2015-07-31 20:17:33 +02:00
25 changed files with 64 additions and 119 deletions
+5
View File
@@ -85,6 +85,11 @@ int strcmp_ptr(const char *a, const char *b) _pure_;
#define malloc0(n) (calloc((n), 1))
static inline void *mfree(void *memory) {
free(memory);
return NULL;
}
static inline const char* yes_no(bool b) {
return b ? "yes" : "no";
}