From da03f5883e81dc6d35b83241dbfb55c92f4754a6 Mon Sep 17 00:00:00 2001 From: Amitay Isaacs Date: Tue, 19 Apr 2016 15:35:55 +1000 Subject: [PATCH] ctdb-client: Release the g_lock record once the update is done Signed-off-by: Amitay Isaacs Reviewed-by: Martin Schwenke --- ctdb/client/client_db.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ctdb/client/client_db.c b/ctdb/client/client_db.c index 450b2f9fa20..3ceb019c4d6 100644 --- a/ctdb/client/client_db.c +++ b/ctdb/client/client_db.c @@ -1322,6 +1322,7 @@ static void ctdb_g_lock_lock_process_locks(struct tevent_req *req) return; } + TALLOC_FREE(state->h); tevent_req_done(req); } @@ -1521,6 +1522,7 @@ static void ctdb_g_lock_unlock_fetched(struct tevent_req *subreq) return; } + TALLOC_FREE(state->h); tevent_req_done(req); } @@ -1583,6 +1585,7 @@ static void ctdb_g_lock_unlock_deleted(struct tevent_req *subreq) return; } + TALLOC_FREE(state->h); tevent_req_done(req); } -- 2.47.3