From: Amitay Isaacs Date: Tue, 19 Apr 2016 05:35:55 +0000 (+1000) Subject: ctdb-client: Release the g_lock record once the update is done X-Git-Tag: tdb-1.3.10~506 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=da03f5883e81dc6d35b83241dbfb55c92f4754a6;p=thirdparty%2Fsamba.git ctdb-client: Release the g_lock record once the update is done Signed-off-by: Amitay Isaacs Reviewed-by: Martin Schwenke --- 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); }