summaryrefslogtreecommitdiff
path: root/source3/lib
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/lib
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/lib')
-rw-r--r--source3/lib/ctdbd_conn.c2
1 files changed, 1 insertions, 1 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;