summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2009-05-30 19:18:08 -0400
committerSimo Sorce <ssorce@redhat.com>2009-06-02 09:48:24 -0400
commit773075a4b6b8c0e8480a49f8c7f28cd850c7ea72 (patch)
tree5a8c7f3d3b01e8db96d6a7033962d2b9baa76dac /server
parenteb7ec3e0b713c43d83ea299f6cc90652a4b2243b (diff)
downloadsssd-773075a4b6b8c0e8480a49f8c7f28cd850c7ea72.tar.gz
sssd-773075a4b6b8c0e8480a49f8c7f28cd850c7ea72.tar.bz2
sssd-773075a4b6b8c0e8480a49f8c7f28cd850c7ea72.zip
add utility function talloc_zfree
Diffstat (limited to 'server')
-rw-r--r--server/util/util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/util/util.h b/server/util/util.h
index d328f3ae..61f63fef 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;