summaryrefslogtreecommitdiffstats
path: root/rsyslog.h
diff options
context:
space:
mode:
Diffstat (limited to 'rsyslog.h')
-rw-r--r--rsyslog.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/rsyslog.h b/rsyslog.h
index 2c3449ab..f11ce91d 100644
--- a/rsyslog.h
+++ b/rsyslog.h
@@ -90,6 +90,8 @@ typedef enum rsObjectID rsObjID;
#define RSFREEOBJ(x) {(x)->OID = OIDrsFreed; free(x);}
#endif
+
+#define free(ptr) free(ptr); (ptr) = NULL;
/* get rid of the unhandy "unsigned char"
*/
typedef unsigned char uchar;