s3: Remove talloc_autofree_context() from ctdb_read_req()
authorVolker Lendecke <vl@samba.org>
Sat, 25 Sep 2010 22:50:33 +0000 (15:50 -0700)
committerVolker Lendecke <vl@samba.org>
Sun, 26 Sep 2010 01:29:28 +0000 (03:29 +0200)
source3/lib/ctdbd_conn.c

index e0682f3a7412a8bbbdb912541cad3f8342712ff3..101ab30a6d1a2289ad39327c0b8dfbcac944597b 100644 (file)
@@ -380,7 +380,8 @@ static NTSTATUS ctdb_read_req(struct ctdbd_connection *conn, uint32 reqid,
                        goto next_pkt;
                }
 
-               if (!(msg_state = TALLOC_P(talloc_autofree_context(), struct deferred_msg_state))) {
+               msg_state = TALLOC_P(NULL, struct deferred_msg_state);
+               if (msg_state == NULL) {
                        DEBUG(0, ("talloc failed\n"));
                        TALLOC_FREE(hdr);
                        goto next_pkt;