ctdb-client: Release the g_lock record once the update is done
authorAmitay Isaacs <amitay@gmail.com>
Tue, 19 Apr 2016 05:35:55 +0000 (15:35 +1000)
committerMartin Schwenke <martins@samba.org>
Tue, 5 Jul 2016 08:53:14 +0000 (10:53 +0200)
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/client/client_db.c

index 450b2f9fa203e9e179afbffc4fb53298d0d7cc3b..3ceb019c4d69c342174802011b97a02f1d65810c 100644 (file)
@@ -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);
 }