From b762d771697b80c35daf4f874143a8e74b703d2d Mon Sep 17 00:00:00 2001 From: Amitay Isaacs Date: Thu, 16 Jun 2016 16:17:39 +1000 Subject: [PATCH] ctdb-client: Release g_lock lock before retrying Signed-off-by: Amitay Isaacs Reviewed-by: Martin Schwenke --- ctdb/client/client_db.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ctdb/client/client_db.c b/ctdb/client/client_db.c index b7c0e47df76..252e867d53b 100644 --- a/ctdb/client/client_db.c +++ b/ctdb/client/client_db.c @@ -1351,6 +1351,7 @@ static void ctdb_g_lock_lock_checked(struct tevent_req *subreq) if (value == 0) { /* server process exists, need to retry */ + TALLOC_FREE(state->h); subreq = tevent_wakeup_send(state, state->ev, tevent_timeval_current_ofs(0,1000)); if (tevent_req_nomem(subreq, req)) { -- 2.34.1