From f51a988b7439f4130664a12bf7718f9dc0e0690e Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 3 May 2007 05:51:46 +1000 Subject: [PATCH] fixed a memory leak in the ctdb_control code (This used to be ctdb commit 70aa77a66bb5f16c93ecb122b92a6e63f6343ab1) --- ctdb/common/ctdb_daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctdb/common/ctdb_daemon.c b/ctdb/common/ctdb_daemon.c index 1fb56076452..5d619e0a907 100644 --- a/ctdb/common/ctdb_daemon.c +++ b/ctdb/common/ctdb_daemon.c @@ -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); -- 2.47.3