aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2005-07-31 00:40:51 +0000
committerMatthias Andree <matthias.andree@gmx.de>2005-07-31 00:40:51 +0000
commitfbc9704aebaef278029a3ee01720ad0b835e5b56 (patch)
tree3391e431a678a263dbffb6034dfe9cc621a4a63f
parentf43056cd0a71fc8a9331fb3ec56feaf9487906c7 (diff)
downloadfetchmail-fbc9704aebaef278029a3ee01720ad0b835e5b56.tar.gz
fetchmail-fbc9704aebaef278029a3ee01720ad0b835e5b56.tar.bz2
fetchmail-fbc9704aebaef278029a3ee01720ad0b835e5b56.zip
Add xfree() macro.
svn path=/trunk/; revision=4196
-rw-r--r--fetchmail.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fetchmail.h b/fetchmail.h
index e819e7e8..89d8e608 100644
--- a/fetchmail.h
+++ b/fetchmail.h
@@ -603,6 +603,7 @@ int interface_approve(struct hostdata *, flag domonitor);
#endif
XMALLOCTYPE *xmalloc(size_t);
XMALLOCTYPE *xrealloc(/*@null@*/ XMALLOCTYPE *, size_t);
+#define xfree(p) { if (p) { free(p); } (p) = 0; }
char *xstrdup(const char *);
#if defined(HAVE_ALLOCA_H)
#include <alloca.h>