summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-07-16 18:14:56 -0700
committerJeremy Allison <jra@samba.org>2009-07-16 18:14:56 -0700
commitd4a87ee966adb9205169507fca5c07faefc4513e (patch)
tree12d8c6d9ef12538a89c89db2f20fa66a62b03bb7 /source3
parentd5c20c072b464b675fbd5f37a94ae8a6ad403d49 (diff)
downloadsamba-d4a87ee966adb9205169507fca5c07faefc4513e.tar.gz
samba-d4a87ee966adb9205169507fca5c07faefc4513e.tar.bz2
samba-d4a87ee966adb9205169507fca5c07faefc4513e.zip
Replace more long-lived contexts with talloc_autofree_context().
Jeremy.
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/ctdbd_conn.c2
-rw-r--r--source3/libsmb/spnego.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/ctdbd_conn.c b/source3/lib/ctdbd_conn.c
index dde377581b..449e049ffa 100644
--- a/source3/lib/ctdbd_conn.c
+++ b/source3/lib/ctdbd_conn.c
@@ -358,7 +358,7 @@ static NTSTATUS ctdb_read_req(struct ctdbd_connection *conn, uint32 reqid,
goto next_pkt;
}
- if (!(msg_state = TALLOC_P(NULL, struct deferred_msg_state))) {
+ if (!(msg_state = TALLOC_P(talloc_autofree_context(), struct deferred_msg_state))) {
DEBUG(0, ("talloc failed\n"));
TALLOC_FREE(hdr);
goto next_pkt;
diff --git a/source3/libsmb/spnego.c b/source3/libsmb/spnego.c
index ee2c3c3d5a..3fa9559cfb 100644
--- a/source3/libsmb/spnego.c
+++ b/source3/libsmb/spnego.c
@@ -41,7 +41,7 @@ static bool read_negTokenInit(ASN1_DATA *asn1, negTokenInit_t *token)
asn1_start_tag(asn1, ASN1_CONTEXT(0));
asn1_start_tag(asn1, ASN1_SEQUENCE(0));
- token->mechTypes = TALLOC_P(NULL, const char *);
+ token->mechTypes = TALLOC_P(talloc_autofree_context(), const char *);
for (i = 0; !asn1->has_error &&
0 < asn1_tag_remaining(asn1); i++) {
const char *p_oid = NULL;