diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2005-07-31 00:40:51 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2005-07-31 00:40:51 +0000 |
commit | fbc9704aebaef278029a3ee01720ad0b835e5b56 (patch) | |
tree | 3391e431a678a263dbffb6034dfe9cc621a4a63f | |
parent | f43056cd0a71fc8a9331fb3ec56feaf9487906c7 (diff) | |
download | fetchmail-fbc9704aebaef278029a3ee01720ad0b835e5b56.tar.gz fetchmail-fbc9704aebaef278029a3ee01720ad0b835e5b56.tar.bz2 fetchmail-fbc9704aebaef278029a3ee01720ad0b835e5b56.zip |
Add xfree() macro.
svn path=/trunk/; revision=4196
-rw-r--r-- | fetchmail.h | 1 |
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> |