]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
comment why we do a talloc_steal
authorRonnie Sahlberg <sahlberg@ronnie>
Thu, 23 Aug 2007 23:34:04 +0000 (09:34 +1000)
committerRonnie Sahlberg <sahlberg@ronnie>
Thu, 23 Aug 2007 23:34:04 +0000 (09:34 +1000)
(This used to be ctdb commit aba7972728307e0ae52ccf8c0dd5808110fb92d7)

ctdb/client/ctdb_client.c

index cc1aa3fb8f5412f5155ff52e35cdc5be7aa3ab68..65fb10ec0c887c42da97abf663fce7a1e9c38162 100644 (file)
@@ -760,6 +760,9 @@ static void ctdb_client_reply_control(struct ctdb_context *ctdb,
                                                 c->errorlen);
        }
 
+       /* state->outdata now uses resources from c so we dont want c
+          to just dissappear from under us while state is still alive
+       */
        talloc_steal(state, c);
 
        state->state = CTDB_CONTROL_DONE;