From: Andrew Tridgell Date: Wed, 2 May 2007 19:51:46 +0000 (+1000) Subject: fixed a memory leak in the ctdb_control code X-Git-Tag: tevent-0.9.20~348^2~2795 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f51a988b7439f4130664a12bf7718f9dc0e0690e;p=thirdparty%2Fsamba.git fixed a memory leak in the ctdb_control code (This used to be ctdb commit 70aa77a66bb5f16c93ecb122b92a6e63f6343ab1) --- 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);