1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

fixed a memory leak in the recovery daemon

thanks to vl for spotting this

(This used to be ctdb commit 96df98d9f86ecc6bb1a458eb2101e5c1bc0f96e6)
This commit is contained in:
Andrew Tridgell 2008-08-11 23:33:05 +10:00
parent 1431210d46
commit 76528cfc6b

View File

@ -2153,7 +2153,7 @@ static int verify_ip_allocation(struct ctdb_context *ctdb, uint32_t pnn)
struct ctdb_uptime *uptime2 = NULL; struct ctdb_uptime *uptime2 = NULL;
int ret, j; int ret, j;
ret = ctdb_ctrl_uptime(ctdb, ctdb, CONTROL_TIMEOUT(), ret = ctdb_ctrl_uptime(ctdb, mem_ctx, CONTROL_TIMEOUT(),
CTDB_CURRENT_NODE, &uptime1); CTDB_CURRENT_NODE, &uptime1);
if (ret != 0) { if (ret != 0) {
DEBUG(DEBUG_ERR, ("Unable to get uptime from local node %u\n", pnn)); DEBUG(DEBUG_ERR, ("Unable to get uptime from local node %u\n", pnn));
@ -2169,7 +2169,7 @@ static int verify_ip_allocation(struct ctdb_context *ctdb, uint32_t pnn)
return -1; return -1;
} }
ret = ctdb_ctrl_uptime(ctdb, ctdb, CONTROL_TIMEOUT(), ret = ctdb_ctrl_uptime(ctdb, mem_ctx, CONTROL_TIMEOUT(),
CTDB_CURRENT_NODE, &uptime2); CTDB_CURRENT_NODE, &uptime2);
if (ret != 0) { if (ret != 0) {
DEBUG(DEBUG_ERR, ("Unable to get uptime from local node %u\n", pnn)); DEBUG(DEBUG_ERR, ("Unable to get uptime from local node %u\n", pnn));