From fbc9704aebaef278029a3ee01720ad0b835e5b56 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sun, 31 Jul 2005 00:40:51 +0000 Subject: Add xfree() macro. svn path=/trunk/; revision=4196 --- fetchmail.h | 1 + 1 file changed, 1 insertion(+) (limited to 'fetchmail.h') 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 -- cgit v1.2.3