From 773075a4b6b8c0e8480a49f8c7f28cd850c7ea72 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Sat, 30 May 2009 19:18:08 -0400 Subject: add utility function talloc_zfree --- server/util/util.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'server/util/util.h') diff --git a/server/util/util.h b/server/util/util.h index d328f3aec..61f63feff 100644 --- a/server/util/util.h +++ b/server/util/util.h @@ -48,6 +48,10 @@ void debug_fn(const char *format, ...); #define FLAGS_INTERACTIVE 0x0002 #define FLAGS_PID_FILE 0x0004 +#ifndef talloc_zfree +#define talloc_zfree(ptr) do { talloc_free(ptr); ptr = NULL; } while(0) +#endif + struct main_context { struct tevent_context *event_ctx; struct confdb_ctx *confdb_ctx; -- cgit