summaryrefslogtreecommitdiff
path: root/src/util/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/util.h')
-rw-r--r--src/util/util.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/util/util.h b/src/util/util.h
index 75ac771b..64ad0257 100644
--- a/src/util/util.h
+++ b/src/util/util.h
@@ -231,11 +231,7 @@ errno_t set_debug_file_from_fd(const int fd);
#define FLAGS_PID_FILE 0x0004
#ifndef talloc_zfree
-#define talloc_zfree(ptr) do { \
- TALLOC_CTX *_tmp_ctx = ptr; \
- ptr = NULL; \
- talloc_free(_tmp_ctx); \
- } while(0)
+#define talloc_zfree(ptr) do { talloc_free(ptr); ptr = NULL; } while(0)
#endif
#ifndef discard_const_p