diff options
author | Simo Sorce <ssorce@redhat.com> | 2009-05-30 19:18:08 -0400 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2009-06-02 09:48:24 -0400 |
commit | 773075a4b6b8c0e8480a49f8c7f28cd850c7ea72 (patch) | |
tree | 5a8c7f3d3b01e8db96d6a7033962d2b9baa76dac | |
parent | eb7ec3e0b713c43d83ea299f6cc90652a4b2243b (diff) | |
download | sssd-773075a4b6b8c0e8480a49f8c7f28cd850c7ea72.tar.gz sssd-773075a4b6b8c0e8480a49f8c7f28cd850c7ea72.tar.bz2 sssd-773075a4b6b8c0e8480a49f8c7f28cd850c7ea72.zip |
add utility function talloc_zfree
-rw-r--r-- | server/util/util.h | 4 |
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; |