]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
fixed a memory leak in the ctdb_control code
authorAndrew Tridgell <tridge@samba.org>
Wed, 2 May 2007 19:51:46 +0000 (05:51 +1000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 2 May 2007 19:51:46 +0000 (05:51 +1000)
(This used to be ctdb commit 70aa77a66bb5f16c93ecb122b92a6e63f6343ab1)

ctdb/common/ctdb_daemon.c

index 1fb560764527bd2169b9cfad8971b1c37298c319..5d619e0a9078d99cd2b0f1485f791a453cfb4998 100644 (file)
@@ -810,7 +810,7 @@ static void daemon_control_callback(struct ctdb_context *ctdb,
 
        /* construct a message to send to the client containing the data */
        len = offsetof(struct ctdb_reply_control, data) + data.dsize;
-       r = ctdbd_allocate_pkt(ctdb, client, CTDB_REPLY_CONTROL, len, 
+       r = ctdbd_allocate_pkt(ctdb, state, CTDB_REPLY_CONTROL, len, 
                               struct ctdb_reply_control);
        CTDB_NO_MEMORY_VOID(ctdb, r);