summaryrefslogtreecommitdiff
path: root/source4/auth/gensec/cyrus_sasl.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/auth/gensec/cyrus_sasl.c')
-rw-r--r--source4/auth/gensec/cyrus_sasl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/auth/gensec/cyrus_sasl.c b/source4/auth/gensec/cyrus_sasl.c
index f61de439f2..17a0162e8d 100644
--- a/source4/auth/gensec/cyrus_sasl.c
+++ b/source4/auth/gensec/cyrus_sasl.c
@@ -399,7 +399,7 @@ NTSTATUS gensec_sasl_init(void)
if (oldmech) {
continue;
}
- newmech = talloc(NULL, struct gensec_security_ops);
+ newmech = talloc(talloc_autofree_context(), struct gensec_security_ops);
if (!newmech) {
return NT_STATUS_NO_MEMORY;
}